mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[Fiber] Clear down dependencies during detachFiber (#15947)
This commit is contained in:
@@ -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