Skip to content

Commit 168da8d

Browse files
committed
Fix typo that happened during rebasing
I changed the type of this functions returned value but forgot to change the check. It happens to work before anyway, because eventually the interleaved updates will get transferred at the beginning of the next render phase. But this is more logically consistent.
1 parent 8bc527a commit 168da8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ export function isInterleavedUpdate(fiber: Fiber, lane: Lane) {
732732
// defensive coding measure in case a new update comes in between when
733733
// rendering has finished and when the interleaved updates are transferred
734734
// to the main queue.
735-
hasInterleavedUpdates() !== null) &&
735+
hasInterleavedUpdates()) &&
736736
(fiber.mode & ConcurrentMode) !== NoMode &&
737737
// If this is a render phase update (i.e. UNSAFE_componentWillReceiveProps),
738738
// then don't treat this as an interleaved update. This pattern is

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ export function isInterleavedUpdate(fiber: Fiber, lane: Lane) {
732732
// defensive coding measure in case a new update comes in between when
733733
// rendering has finished and when the interleaved updates are transferred
734734
// to the main queue.
735-
hasInterleavedUpdates() !== null) &&
735+
hasInterleavedUpdates()) &&
736736
(fiber.mode & ConcurrentMode) !== NoMode &&
737737
// If this is a render phase update (i.e. UNSAFE_componentWillReceiveProps),
738738
// then don't treat this as an interleaved update. This pattern is

0 commit comments

Comments
 (0)