Skip to content

Commit

Permalink
remove duplicate function
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Dec 6, 2024
1 parent 193fd1b commit d9d9cf4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/react_on_rails/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -539,13 +539,6 @@ def prepend_render_rails_context(render_value)
"#{rails_context_if_not_already_rendered}\n#{render_value}".strip.html_safe
end

def internal_rsc_react_component(react_component_name, options = {})
options = options.merge(rsc?: true)
render_options = ReactOnRails::ReactComponent::RenderOptions.new(react_component_name: react_component_name,
options: options)
server_rendered_react_component(render_options)
end

def internal_react_component(react_component_name, options = {})
# Create the JavaScript and HTML to allow either client or server rendering of the
# react_component.
Expand Down

0 comments on commit d9d9cf4

Please sign in to comment.