File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -726,20 +726,11 @@ function detachFiber(current: Fiber) {
726
726
// get GC:ed but we don't know which for sure which parent is the current
727
727
// one so we'll settle for GC:ing the subtree of this child. This child
728
728
// itself will be GC:ed when the parent updates the next time.
729
- // We do not null out the 'nextEffect' field as it causes tests to fail.
730
729
current . return = null ;
731
730
current . child = null ;
732
- current . memoizedState = null ;
733
- current . updateQueue = null ;
734
- current . firstEffect = null ;
735
- current . lastEffect = null ;
736
731
if ( current . alternate ) {
737
- current . alternate . return = null ;
738
732
current . alternate . child = null ;
739
- current . alternate . memoizedState = null ;
740
- current . alternate . updateQueue = null ;
741
- current . alternate . firstEffect = null ;
742
- current . alternate . lastEffect = null ;
733
+ current . alternate . return = null ;
743
734
}
744
735
}
745
736
You can’t perform that action at this time.
0 commit comments