Skip to content

Commit d9d9cf4

Browse files
remove duplicate function
1 parent 193fd1b commit d9d9cf4

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/react_on_rails/helper.rb

-7
Original file line numberDiff line numberDiff line change
@@ -539,13 +539,6 @@ def prepend_render_rails_context(render_value)
539539
"#{rails_context_if_not_already_rendered}\n#{render_value}".strip.html_safe
540540
end
541541

542-
def internal_rsc_react_component(react_component_name, options = {})
543-
options = options.merge(rsc?: true)
544-
render_options = ReactOnRails::ReactComponent::RenderOptions.new(react_component_name: react_component_name,
545-
options: options)
546-
server_rendered_react_component(render_options)
547-
end
548-
549542
def internal_react_component(react_component_name, options = {})
550543
# Create the JavaScript and HTML to allow either client or server rendering of the
551544
# react_component.

0 commit comments

Comments
 (0)