mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
[Fiber] Clear down dependencies during detachFiber (#15947)
This commit is contained in:
1 parent
a5ed2f98f9
commit
696609d49a
1 file changed
+2
@@ -837,12 +837,14 @@ function detachFiber(current: Fiber) {
|
||||
current.child = null;
|
||||
current.memoizedState = null;
|
||||
current.updateQueue = null;
|
||||
current.dependencies = null;
|
||||
const alternate = current.alternate;
|
||||
if (alternate !== null) {
|
||||
alternate.return = null;
|
||||
alternate.child = null;
|
||||
alternate.memoizedState = null;
|
||||
alternate.updateQueue = null;
|
||||
alternate.dependencies = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user