Skip to content

Commit

Permalink
Add _debugStack and _debugTask under enableObjectFiber flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kassens committed Jul 15, 2024
1 parent 8b08e99 commit 61700bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-reconciler/src/ReactFiber.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,12 @@ function createFiberImplObject(
if (__DEV__) {
fiber._debugInfo = null;
fiber._debugOwner = null;
if (enableOwnerStacks) {
this._debugStack = null;
this._debugTask = null;
}
fiber._debugNeedsRemount = false;
fiber._debugHookTypes = null;

if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
Object.preventExtensions(fiber);
}
Expand Down

0 comments on commit 61700bd

Please sign in to comment.