Revert "Clear more Fiber fields in detachFiber (#18556)"

This reverts commit d48dbb8249.
This commit is contained in:
Dan Abramov 2020-04-09 20:43:50 +01:00 committed by GitHub
parent cbab25bb51
commit 048fe53b22
2 changed files with 0 additions and 8 deletions

View File

@ -1118,7 +1118,6 @@ function detachFiber(fiber: Fiber) {
// itself will be GC:ed when the parent updates the next time.
fiber.return = null;
fiber.child = null;
fiber.sibling = null;
fiber.memoizedState = null;
fiber.updateQueue = null;
fiber.dependencies = null;
@ -1128,9 +1127,6 @@ function detachFiber(fiber: Fiber) {
fiber.pendingProps = null;
fiber.memoizedProps = null;
fiber.stateNode = null;
if (__DEV__) {
fiber._debugOwner = null;
}
}
function emptyPortalContainer(current: Fiber) {

View File

@ -1118,7 +1118,6 @@ function detachFiber(fiber: Fiber) {
// itself will be GC:ed when the parent updates the next time.
fiber.return = null;
fiber.child = null;
fiber.sibling = null;
fiber.memoizedState = null;
fiber.updateQueue = null;
fiber.dependencies = null;
@ -1128,9 +1127,6 @@ function detachFiber(fiber: Fiber) {
fiber.pendingProps = null;
fiber.memoizedProps = null;
fiber.stateNode = null;
if (__DEV__) {
fiber._debugOwner = null;
}
}
function emptyPortalContainer(current: Fiber) {