MCPcopy Index your code
hub / github.com/caseywebdev/react-list / markRootSuspended

Function markRootSuspended

docs/index.js:14052–14072  ·  view source on GitHub ↗
(
  root,
  suspendedLanes,
  spawnedLane,
  didAttemptEntireTree
)

Source from the content-addressed store, hash-verified

14050 return !0;
14051}
14052function markRootSuspended(
14053 root,
14054 suspendedLanes,
14055 spawnedLane,
14056 didAttemptEntireTree
14057) {
14058 suspendedLanes &= ~workInProgressRootPingedLanes;
14059 suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
14060 root.suspendedLanes |= suspendedLanes;
14061 root.pingedLanes &= ~suspendedLanes;
14062 didAttemptEntireTree && (root.warmLanes |= suspendedLanes);
14063 didAttemptEntireTree = root.expirationTimes;
14064 for (var lanes = suspendedLanes; 0 < lanes; ) {
14065 var index$6 = 31 - clz32(lanes),
14066 lane = 1 << index$6;
14067 didAttemptEntireTree[index$6] = -1;
14068 lanes &= ~lane;
14069 }
14070 0 !== spawnedLane &&
14071 markSpawnedDeferredLane(root, spawnedLane, suspendedLanes);
14072}
14073function flushSyncWork$1() {
14074 return 0 === (executionContext & 6)
14075 ? (flushSyncWorkAcrossRoots_impl(0, !1), !1)

Callers 4

scheduleUpdateOnFiberFunction · 0.85
performWorkOnRootFunction · 0.85
commitRootWhenReadyFunction · 0.85

Calls 1

markSpawnedDeferredLaneFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…