We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfa2690 commit 8de8be0Copy full SHA for 8de8be0
packages/react-reconciler/src/ReactFiberDevToolsHook.js
@@ -37,6 +37,12 @@ export function injectInternals(internals: Object): boolean {
37
return false;
38
}
39
const hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
40
+ if (hook.isDisabled) {
41
+ // This isn't a real property on the hook, but it can be set to opt out
42
+ // of DevTools integration and associated warnings and logs.
43
+ // https://github.com/facebook/react/issues/3877
44
+ return true;
45
+ }
46
if (!hook.supportsFiber) {
47
if (__DEV__) {
48
warning(
0 commit comments