mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add _debugStack and _debugTask under enableObjectFiber flag (#30337)
This commit is contained in:
+5
-1
@@ -296,11 +296,15 @@ function createFiberImplObject(
|
||||
}
|
||||
|
||||
if (__DEV__) {
|
||||
// This isn't directly used but is handy for debugging internals:
|
||||
fiber._debugInfo = null;
|
||||
fiber._debugOwner = null;
|
||||
if (enableOwnerStacks) {
|
||||
fiber._debugStack = null;
|
||||
fiber._debugTask = null;
|
||||
}
|
||||
fiber._debugNeedsRemount = false;
|
||||
fiber._debugHookTypes = null;
|
||||
|
||||
if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
|
||||
Object.preventExtensions(fiber);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user