MCPcopy Create free account
hub / github.com/caseywebdev/react-list / getNextLanes

Function getNextLanes

docs/index.js:4106–4146  ·  view source on GitHub ↗
(root, wipLanes)

Source from the content-addressed store, hash-verified

4104 }
4105}
4106function getNextLanes(root, wipLanes) {
4107 var pendingLanes = root.pendingLanes;
4108 if (0 === pendingLanes) return 0;
4109 var nextLanes = 0,
4110 suspendedLanes = root.suspendedLanes,
4111 pingedLanes = root.pingedLanes,
4112 warmLanes = root.warmLanes;
4113 root = 0 !== root.finishedLanes;
4114 var nonIdlePendingLanes = pendingLanes & 134217727;
4115 0 !== nonIdlePendingLanes
4116 ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
4117 0 !== pendingLanes
4118 ? (nextLanes = getHighestPriorityLanes(pendingLanes))
4119 : ((pingedLanes &= nonIdlePendingLanes),
4120 0 !== pingedLanes
4121 ? (nextLanes = getHighestPriorityLanes(pingedLanes))
4122 : root ||
4123 ((warmLanes = nonIdlePendingLanes & ~warmLanes),
4124 0 !== warmLanes &&
4125 (nextLanes = getHighestPriorityLanes(warmLanes)))))
4126 : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
4127 0 !== nonIdlePendingLanes
4128 ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
4129 : 0 !== pingedLanes
4130 ? (nextLanes = getHighestPriorityLanes(pingedLanes))
4131 : root ||
4132 ((warmLanes = pendingLanes & ~warmLanes),
4133 0 !== warmLanes &&
4134 (nextLanes = getHighestPriorityLanes(warmLanes))));
4135 return 0 === nextLanes
4136 ? 0
4137 : 0 !== wipLanes &&
4138 wipLanes !== nextLanes &&
4139 0 === (wipLanes & suspendedLanes) &&
4140 ((suspendedLanes = nextLanes & -nextLanes),
4141 (warmLanes = wipLanes & -wipLanes),
4142 suspendedLanes >= warmLanes ||
4143 (32 === suspendedLanes && 0 !== (warmLanes & 4194176)))
4144 ? wipLanes
4145 : nextLanes;
4146}
4147function checkIfRootIsPrerendering(root, renderLanes) {
4148 return (
4149 0 ===

Calls 1

getHighestPriorityLanesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…