GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Revert "Use highest priority lane to detect interruptions (#21088)" · react/react@86f3385

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-reconciler/src
    • ReactFiberLane.new.js
    • ReactFiberLane.old.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-reconciler/src/ReactFiberLane.new.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberLane.new.js
+5-6Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,16 +300,15 @@ export function getNextLanes(root: FiberRoot, wipLanes: Lanes): Lanes {
300300
// bother waiting until the root is complete.
301301
(wipLanes & suspendedLanes) === NoLanes
302302
) {
303-
const nextLane = getHighestPriorityLane(nextLanes);
304-
const wipLane = getHighestPriorityLane(wipLanes);
303+
getHighestPriorityLanes(wipLanes);
304+
const wipLanePriority = return_highestLanePriority;
305305
if (
306-
// Tests whether the next lane is equal or lower priority than the wip
307-
// one. This works because the bits decrease in priority as you go left.
308-
nextLane >= wipLane ||
306+
nextLanePriority <= wipLanePriority ||
309307
// Default priority updates should not interrupt transition updates. The
310308
// only difference between default updates and transition updates is that
311309
// default updates do not support refresh transitions.
312-
(nextLane === DefaultLane && (wipLane & TransitionLanes) !== NoLanes)
310+
(nextLanePriority === DefaultLanePriority &&
311+
wipLanePriority === TransitionPriority)
313312
) {
314313
// Keep working on the existing in-progress tree. Do not interrupt.
315314
return wipLanes;
Collapse file

‎packages/react-reconciler/src/ReactFiberLane.old.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberLane.old.js
+5-6Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,16 +300,15 @@ export function getNextLanes(root: FiberRoot, wipLanes: Lanes): Lanes {
300300
// bother waiting until the root is complete.
301301
(wipLanes & suspendedLanes) === NoLanes
302302
) {
303-
const nextLane = getHighestPriorityLane(nextLanes);
304-
const wipLane = getHighestPriorityLane(wipLanes);
303+
getHighestPriorityLanes(wipLanes);
304+
const wipLanePriority = return_highestLanePriority;
305305
if (
306-
// Tests whether the next lane is equal or lower priority than the wip
307-
// one. This works because the bits decrease in priority as you go left.
308-
nextLane >= wipLane ||
306+
nextLanePriority <= wipLanePriority ||
309307
// Default priority updates should not interrupt transition updates. The
310308
// only difference between default updates and transition updates is that
311309
// default updates do not support refresh transitions.
312-
(nextLane === DefaultLane && (wipLane & TransitionLanes) !== NoLanes)
310+
(nextLanePriority === DefaultLanePriority &&
311+
wipLanePriority === TransitionPriority)
313312
) {
314313
// Keep working on the existing in-progress tree. Do not interrupt.
315314
return wipLanes;

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.