Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 048fe53

Browse files
authored
Revert "Clear more Fiber fields in detachFiber (facebook#18556)"
This reverts commit d48dbb8.
1 parent cbab25b commit 048fe53

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

packages/react-reconciler/src/ReactFiberCommitWork.new.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,6 @@ function detachFiber(fiber: Fiber) {
11181118
// itself will be GC:ed when the parent updates the next time.
11191119
fiber.return = null;
11201120
fiber.child = null;
1121-
fiber.sibling = null;
11221121
fiber.memoizedState = null;
11231122
fiber.updateQueue = null;
11241123
fiber.dependencies = null;
@@ -1128,9 +1127,6 @@ function detachFiber(fiber: Fiber) {
11281127
fiber.pendingProps = null;
11291128
fiber.memoizedProps = null;
11301129
fiber.stateNode = null;
1131-
if (__DEV__) {
1132-
fiber._debugOwner = null;
1133-
}
11341130
}
11351131

11361132
function emptyPortalContainer(current: Fiber) {

packages/react-reconciler/src/ReactFiberCommitWork.old.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,6 @@ function detachFiber(fiber: Fiber) {
11181118
// itself will be GC:ed when the parent updates the next time.
11191119
fiber.return = null;
11201120
fiber.child = null;
1121-
fiber.sibling = null;
11221121
fiber.memoizedState = null;
11231122
fiber.updateQueue = null;
11241123
fiber.dependencies = null;
@@ -1128,9 +1127,6 @@ function detachFiber(fiber: Fiber) {
11281127
fiber.pendingProps = null;
11291128
fiber.memoizedProps = null;
11301129
fiber.stateNode = null;
1131-
if (__DEV__) {
1132-
fiber._debugOwner = null;
1133-
}
11341130
}
11351131

11361132
function emptyPortalContainer(current: Fiber) {

0 commit comments

Comments
 (0)