[Fiber] Clear down dependencies during detachFiber (#15947)

This commit is contained in:
Dominic Gannaway
2019-06-21 19:54:04 +01:00
committed by GitHub
parent a5ed2f98f9
commit 696609d49a
+2
View File
@@ -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;
}
}