Skip to content

Commit 7aa28cb

Browse files
committed
flow
1 parent 011a346 commit 7aa28cb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/react-reconciler/src/ReactFiberWorkLoop.new.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ import {
181181
invokePassiveEffectUnmountInDEV,
182182
reportUncaughtErrorInDEV,
183183
} from './ReactFiberCommitWork.new';
184-
import {enqueueUpdate} from './ReactFiberClassUpdateQueue.new';
184+
import {
185+
enqueueUpdate,
186+
resetCurrentlyProcessingQueue,
187+
} from './ReactFiberClassUpdateQueue.new';
185188
import {resetContextDependencies} from './ReactFiberNewContext.new';
186189
import {
187190
resetHooksAfterThrow,
@@ -2938,6 +2941,9 @@ function invokeEffectsInDev(
29382941
let subtreeRoot = null;
29392942

29402943
const setNextCurrent = () => {
2944+
if (current === null) {
2945+
return;
2946+
}
29412947
if (current.sibling !== null) {
29422948
current = current.sibling;
29432949
} else {

0 commit comments

Comments
 (0)