From d9d9cf48ecae4055b0363a2e85a4a2f21f4ab18b Mon Sep 17 00:00:00 2001 From: Abanoub Ghadban Date: Fri, 6 Dec 2024 11:05:37 +0200 Subject: [PATCH] remove duplicate function --- lib/react_on_rails/helper.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/react_on_rails/helper.rb b/lib/react_on_rails/helper.rb index f9f34f0a4..fa3159dd7 100644 --- a/lib/react_on_rails/helper.rb +++ b/lib/react_on_rails/helper.rb @@ -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.