Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Sep 30, 2024
1 parent cedd5ea commit 4d50834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node_package/src/serverRenderReactComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ as a renderFunction and not a simple React Function Component.`);
const awaitedRenderResult = await renderResult;

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

0 comments on commit 4d50834

Please sign in to comment.