Skip to content

Commit

Permalink
flow
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy-SC committed Aug 5, 2022
1 parent 011a346 commit 7aa28cb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/react-reconciler/src/ReactFiberWorkLoop.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ import {
invokePassiveEffectUnmountInDEV,
reportUncaughtErrorInDEV,
} from './ReactFiberCommitWork.new';
import {enqueueUpdate} from './ReactFiberClassUpdateQueue.new';
import {
enqueueUpdate,
resetCurrentlyProcessingQueue,
} from './ReactFiberClassUpdateQueue.new';
import {resetContextDependencies} from './ReactFiberNewContext.new';
import {
resetHooksAfterThrow,
Expand Down Expand Up @@ -2938,6 +2941,9 @@ function invokeEffectsInDev(
let subtreeRoot = null;

const setNextCurrent = () => {
if (current === null) {
return;
}
if (current.sibling !== null) {
current = current.sibling;
} else {
Expand Down

0 comments on commit 7aa28cb

Please sign in to comment.