Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyr committed Oct 7, 2024
1 parent 4103146 commit b60c373
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 b60c373

Please sign in to comment.