diff --git a/lib/react_on_rails/helper.rb b/lib/react_on_rails/helper.rb index a439670ae..de6ae5509 100644 --- a/lib/react_on_rails/helper.rb +++ b/lib/react_on_rails/helper.rb @@ -590,11 +590,11 @@ def server_rendered_react_component(render_options) end if render_options.stream? - # It doesn't make any transformation, it just listening to the streamed chunks and raise error if it has errors result.transform do |chunk_json_result| if should_raise_streaming_prerender_error?(chunk_json_result, render_options) raise_prerender_error(chunk_json_result, react_component_name, props, js_code) end + # It doesn't make any transformation, it listens to the streamed chunks and raise error if it has errors chunk_json_result end else diff --git a/node_package/src/serverRenderReactComponent.ts b/node_package/src/serverRenderReactComponent.ts index 7e5b6fcf2..71e5d69c0 100644 --- a/node_package/src/serverRenderReactComponent.ts +++ b/node_package/src/serverRenderReactComponent.ts @@ -205,7 +205,6 @@ See https://github.com/shakacode/react_on_rails#renderer-functions`); const transformStream = new PassThrough({ transform(chunk, _, callback) { const htmlChunk = chunk.toString(); - console.log('htmlChunk', htmlChunk); const consoleReplayScript = buildConsoleReplay(previouslyReplayedConsoleMessages); previouslyReplayedConsoleMessages = console.history?.length || 0;