From b60c373d9f032b8c5faa1cc556c3654dad91e30a Mon Sep 17 00:00:00 2001
From: Alexey Romanov <alexey.v.romanov@gmail.com>
Date: Mon, 7 Oct 2024 23:29:04 +0000
Subject: [PATCH] Add comment

---
 node_package/src/serverRenderReactComponent.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/node_package/src/serverRenderReactComponent.ts b/node_package/src/serverRenderReactComponent.ts
index 118247ee34..5a518e3bf9 100644
--- a/node_package/src/serverRenderReactComponent.ts
+++ b/node_package/src/serverRenderReactComponent.ts
@@ -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,