diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.new.js b/packages/react-reconciler/src/ReactFiberWorkLoop.new.js index 3f0d3278f488b..e9381e709f226 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.new.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.new.js @@ -732,7 +732,7 @@ export function isInterleavedUpdate(fiber: Fiber, lane: Lane) { // defensive coding measure in case a new update comes in between when // rendering has finished and when the interleaved updates are transferred // to the main queue. - hasInterleavedUpdates() !== null) && + hasInterleavedUpdates()) && (fiber.mode & ConcurrentMode) !== NoMode && // If this is a render phase update (i.e. UNSAFE_componentWillReceiveProps), // then don't treat this as an interleaved update. This pattern is diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js index 7dbbc9b25f9a7..5d25610f5f4a8 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js @@ -732,7 +732,7 @@ export function isInterleavedUpdate(fiber: Fiber, lane: Lane) { // defensive coding measure in case a new update comes in between when // rendering has finished and when the interleaved updates are transferred // to the main queue. - hasInterleavedUpdates() !== null) && + hasInterleavedUpdates()) && (fiber.mode & ConcurrentMode) !== NoMode && // If this is a render phase update (i.e. UNSAFE_componentWillReceiveProps), // then don't treat this as an interleaved update. This pattern is