From 65a00401cd108cc69a2d00bd0d300c1f439a2923 Mon Sep 17 00:00:00 2001 From: Abanoub Ghadban Date: Tue, 30 Jul 2024 16:49:23 +0300 Subject: [PATCH] fix the problem of not updating the first streaming chunk --- lib/react_on_rails/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/react_on_rails/helper.rb b/lib/react_on_rails/helper.rb index f98d42109..3b52d813a 100644 --- a/lib/react_on_rails/helper.rb +++ b/lib/react_on_rails/helper.rb @@ -411,7 +411,7 @@ def build_react_component_result_for_server_streamed_content( #{component_specification_tag} <#{content_tag_options_html_tag} id="#{render_options.dom_id}">#{chunk} HTML - html_content.strip + next html_content.strip end chunk end