File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
packages/react-devtools-shared/src Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -367,25 +367,6 @@ export function installHook(target: any): DevToolsHook | null {
367
367
? 'deadcode'
368
368
: detectReactBuildType(renderer);
369
369
370
- // Patching the console enables DevTools to do a few useful things:
371
- // * Append component stacks to warnings and error messages
372
- // * Disabling or marking logs during a double render in Strict Mode
373
- // * Disable logging during re-renders to inspect hooks (see inspectHooksOfFiber)
374
- //
375
- // Allow patching console early (during injection) to
376
- // provide developers with components stacks even if they don't run DevTools.
377
- if (target.hasOwnProperty('__REACT_DEVTOOLS_CONSOLE_FUNCTIONS__')) {
378
- const {registerRendererWithConsole, patchConsoleUsingWindowValues} =
379
- target.__REACT_DEVTOOLS_CONSOLE_FUNCTIONS__;
380
- if (
381
- typeof registerRendererWithConsole === 'function' &&
382
- typeof patchConsoleUsingWindowValues === 'function'
383
- ) {
384
- registerRendererWithConsole(renderer);
385
- patchConsoleUsingWindowValues();
386
- }
387
- }
388
-
389
370
// If we have just reloaded to profile, we need to inject the renderer interface before the app loads.
390
371
// Otherwise the renderer won't yet exist and we can skip this step.
391
372
const attach = target.__REACT_DEVTOOLS_ATTACH__;
You can’t perform that action at this time.
0 commit comments