Skip to content

Commit 2ec583e

Browse files
remove debugging statements
1 parent 50bf32f commit 2ec583e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/react_on_rails/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,11 +634,11 @@ def server_rendered_react_component(render_options)
634634
end
635635

636636
if render_options.stream?
637-
# It doesn't make any transformation, it just listening to the streamed chunks and raise error if it has errors
638637
result.transform do |chunk_json_result|
639638
if should_raise_streaming_prerender_error?(chunk_json_result, render_options)
640639
raise_prerender_error(chunk_json_result, react_component_name, props, js_code)
641640
end
641+
# It doesn't make any transformation, it listens to the streamed chunks and raise error if it has errors
642642
chunk_json_result
643643
end
644644
else

node_package/src/serverRenderReactComponent.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ export const streamServerRenderedReactComponent = (options: RenderParams): Reada
229229
const transformStream = new PassThrough({
230230
transform(chunk, _, callback) {
231231
const htmlChunk = chunk.toString();
232-
console.log('htmlChunk', htmlChunk);
233232
const consoleReplayScript = buildConsoleReplay(consoleHistory, previouslyReplayedConsoleMessages);
234233
previouslyReplayedConsoleMessages = consoleHistory?.length || 0;
235234

0 commit comments

Comments
 (0)