@@ -225,7 +225,7 @@ export function installHook(target: any): DevToolsHook | null {
225
225
// React and DevTools are connecting and the renderer interface isn't avaiable
226
226
// and we want to be able to have consistent logging behavior for double logs
227
227
// during the initial renderer.
228
- function patchConsoleForInitialRenderInStrictMode ( {
228
+ function patchConsoleForInitialCommitInStrictMode ( {
229
229
hideConsoleLogsInStrictMode,
230
230
browserTheme,
231
231
} : {
@@ -311,7 +311,7 @@ export function installHook(target: any): DevToolsHook | null {
311
311
}
312
312
313
313
// NOTE: KEEP IN SYNC with src/backend/console.js:unpatchForStrictMode
314
- function unpatchConsoleForInitialRenderInStrictMode ( ) {
314
+ function unpatchConsoleForInitialCommitInStrictMode ( ) {
315
315
if ( unpatchFn !== null ) {
316
316
unpatchFn ( ) ;
317
317
unpatchFn = null ;
@@ -451,19 +451,19 @@ export function installHook(target: any): DevToolsHook | null {
451
451
rendererInterface . unpatchConsoleForStrictMode ( ) ;
452
452
}
453
453
} else {
454
- // This should only happen during initial render in the extension before DevTools
454
+ // This should only happen during initial commit in the extension before DevTools
455
455
// finishes its handshake with the injected renderer
456
456
if ( isStrictMode ) {
457
457
const hideConsoleLogsInStrictMode =
458
458
window . __REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE__ === true ;
459
459
const browserTheme = window . __REACT_DEVTOOLS_BROWSER_THEME__ ;
460
460
461
- patchConsoleForInitialRenderInStrictMode ( {
461
+ patchConsoleForInitialCommitInStrictMode ( {
462
462
hideConsoleLogsInStrictMode,
463
463
browserTheme,
464
464
} ) ;
465
465
} else {
466
- unpatchConsoleForInitialRenderInStrictMode ( ) ;
466
+ unpatchConsoleForInitialCommitInStrictMode ( ) ;
467
467
}
468
468
}
469
469
}
0 commit comments