Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyr committed Oct 8, 2024
1 parent 990841d commit 2a786b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node_package/src/serverRenderReactComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ as a renderFunction and not a simple React Function Component.`);

const consoleReplayScript = buildConsoleReplay();
const addRenderingErrors = (resultObject: RenderResult, renderError: RenderingError) => {
// Do not use `resultObject.renderingError = renderError` because JSON.stringify will turn it into '{}'.
resultObject.renderingError = { // eslint-disable-line no-param-reassign
message: renderError.message,
stack: renderError.stack,
Expand Down

0 comments on commit 2a786b3

Please sign in to comment.