Skip to content

Commit

Permalink
Use NoLane to replace zero
Browse files Browse the repository at this point in the history
  • Loading branch information
wtlin1228 committed Apr 9, 2022
1 parent e0160d5 commit 11dade8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberLane.new.js
Expand Up @@ -634,8 +634,8 @@ export function markRootFinished(root: FiberRoot, remainingLanes: Lanes) {
root.pendingLanes = remainingLanes;

// Let's try everything again
root.suspendedLanes = 0;
root.pingedLanes = 0;
root.suspendedLanes = NoLane;
root.pingedLanes = NoLane;

root.expiredLanes &= remainingLanes;
root.mutableReadLanes &= remainingLanes;
Expand Down
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberLane.old.js
Expand Up @@ -634,8 +634,8 @@ export function markRootFinished(root: FiberRoot, remainingLanes: Lanes) {
root.pendingLanes = remainingLanes;

// Let's try everything again
root.suspendedLanes = 0;
root.pingedLanes = 0;
root.suspendedLanes = NoLane;
root.pingedLanes = NoLane;

root.expiredLanes &= remainingLanes;
root.mutableReadLanes &= remainingLanes;
Expand Down

0 comments on commit 11dade8

Please sign in to comment.