Skip to content

Commit 4d50834

Browse files
update comment
1 parent cedd5ea commit 4d50834

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node_package/src/serverRenderReactComponent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ as a renderFunction and not a simple React Function Component.`);
114114
const awaitedRenderResult = await renderResult;
115115

116116
// If replayServerAsyncOperationLogs node renderer config is enabled, the console.history will contain all logs happened during sync and async operations.
117-
// If replayServerAsyncOperationLogs node renderer config is disabled, the console.history will be empty, because it will clear the history after the sync execution.
118-
// If the config is disabled, we will return the logs accumulated during the sync execution only.
117+
// If the config is disabled, the console.history will be empty, because it will clear the history after the sync execution.
118+
// In case of disabled config, we will use the console.history after sync execution, which contains all logs happened during sync execution.
119119
const consoleHistoryAfterAsyncExecution = console.history;
120120
let consoleReplayScript = '';
121121
if ((consoleHistoryAfterAsyncExecution?.length ?? 0) > (consoleHistoryAfterSyncExecution?.length ?? 0)) {

0 commit comments

Comments
 (0)