diff --git a/packages/react-reconciler/src/ReactFiberCommitWork.js b/packages/react-reconciler/src/ReactFiberCommitWork.js index 55a39ee640db8..2594e948957d1 100644 --- a/packages/react-reconciler/src/ReactFiberCommitWork.js +++ b/packages/react-reconciler/src/ReactFiberCommitWork.js @@ -728,9 +728,14 @@ function detachFiber(current: Fiber) { // itself will be GC:ed when the parent updates the next time. current.return = null; current.child = null; - if (current.alternate) { - current.alternate.child = null; - current.alternate.return = null; + current.memoizedState = null; + current.updateQueue = null; + const alternate = current.alternate; + if (alternate !== null) { + alternate.return = null; + alternate.child = null; + alternate.memoizedState = null; + alternate.updateQueue = null; } }