Skip to content

Commit

Permalink
remove debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Aug 28, 2024
1 parent 4829dcd commit a0fa564
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/react_on_rails/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion node_package/src/serverRenderReactComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a0fa564

Please sign in to comment.