File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,10 @@ import {
181
181
invokePassiveEffectUnmountInDEV ,
182
182
reportUncaughtErrorInDEV ,
183
183
} from './ReactFiberCommitWork.new' ;
184
- import { enqueueUpdate } from './ReactFiberClassUpdateQueue.new' ;
184
+ import {
185
+ enqueueUpdate ,
186
+ resetCurrentlyProcessingQueue ,
187
+ } from './ReactFiberClassUpdateQueue.new' ;
185
188
import { resetContextDependencies } from './ReactFiberNewContext.new' ;
186
189
import {
187
190
resetHooksAfterThrow ,
@@ -2938,6 +2941,9 @@ function invokeEffectsInDev(
2938
2941
let subtreeRoot = null ;
2939
2942
2940
2943
const setNextCurrent = ( ) = > {
2944
+ if ( current === null ) {
2945
+ return ;
2946
+ }
2941
2947
if ( current . sibling !== null ) {
2942
2948
current = current . sibling ;
2943
2949
} else {
You can’t perform that action at this time.
0 commit comments