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

This reverts commit d48dbb8249.
This commit is contained in:
Dan Abramov
2020-04-09 20:45:02 +01:00
committed by GitHub
parent cbab25bb51
commit e5d06e34b6
2 changed files with 0 additions and 8 deletions
@@ -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) {
@@ -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) {