File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2215,6 +2215,9 @@ function commitMutationEffects(
22152215) {
22162216 if ( fiber . deletions !== null ) {
22172217 commitMutationEffectsDeletions ( fiber . deletions , root , renderPriorityLevel ) ;
2218+
2219+ // TODO (effects) Don't clear this yet; we may need to cleanup passive effects
2220+ fiber . deletions = null ;
22182221 }
22192222
22202223 if ( fiber . child !== null ) {
@@ -2354,9 +2357,6 @@ function commitMutationEffectsDeletions(
23542357 }
23552358 // Don't clear the Deletion effect yet; we also use it to know when we need to detach refs later.
23562359 }
2357-
2358- // TODO (effects) Don't clear this yet; we may need to cleanup passive effects
2359- deletions . splice ( 0 ) ;
23602360}
23612361
23622362function commitLayoutEffects (
You can’t perform that action at this time.
0 commit comments