mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 00:20:28 +01:00
Revert "Clear more Fiber fields in detachFiber (#18556)"
This reverts commit d48dbb8249.
This commit is contained in:
parent
cbab25bb51
commit
048fe53b22
|
|
@ -1118,7 +1118,6 @@ function detachFiber(fiber: Fiber) {
|
||||||
// itself will be GC:ed when the parent updates the next time.
|
// itself will be GC:ed when the parent updates the next time.
|
||||||
fiber.return = null;
|
fiber.return = null;
|
||||||
fiber.child = null;
|
fiber.child = null;
|
||||||
fiber.sibling = null;
|
|
||||||
fiber.memoizedState = null;
|
fiber.memoizedState = null;
|
||||||
fiber.updateQueue = null;
|
fiber.updateQueue = null;
|
||||||
fiber.dependencies = null;
|
fiber.dependencies = null;
|
||||||
|
|
@ -1128,9 +1127,6 @@ function detachFiber(fiber: Fiber) {
|
||||||
fiber.pendingProps = null;
|
fiber.pendingProps = null;
|
||||||
fiber.memoizedProps = null;
|
fiber.memoizedProps = null;
|
||||||
fiber.stateNode = null;
|
fiber.stateNode = null;
|
||||||
if (__DEV__) {
|
|
||||||
fiber._debugOwner = null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function emptyPortalContainer(current: Fiber) {
|
function emptyPortalContainer(current: Fiber) {
|
||||||
|
|
|
||||||
|
|
@ -1118,7 +1118,6 @@ function detachFiber(fiber: Fiber) {
|
||||||
// itself will be GC:ed when the parent updates the next time.
|
// itself will be GC:ed when the parent updates the next time.
|
||||||
fiber.return = null;
|
fiber.return = null;
|
||||||
fiber.child = null;
|
fiber.child = null;
|
||||||
fiber.sibling = null;
|
|
||||||
fiber.memoizedState = null;
|
fiber.memoizedState = null;
|
||||||
fiber.updateQueue = null;
|
fiber.updateQueue = null;
|
||||||
fiber.dependencies = null;
|
fiber.dependencies = null;
|
||||||
|
|
@ -1128,9 +1127,6 @@ function detachFiber(fiber: Fiber) {
|
||||||
fiber.pendingProps = null;
|
fiber.pendingProps = null;
|
||||||
fiber.memoizedProps = null;
|
fiber.memoizedProps = null;
|
||||||
fiber.stateNode = null;
|
fiber.stateNode = null;
|
||||||
if (__DEV__) {
|
|
||||||
fiber._debugOwner = null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function emptyPortalContainer(current: Fiber) {
|
function emptyPortalContainer(current: Fiber) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user