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

Function processRootScheduleInMicrotask

docs/index.js:14876–14901  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14874 }
14875}
14876function processRootScheduleInMicrotask() {
14877 mightHavePendingSyncWork = didScheduleMicrotask = !1;
14878 var syncTransitionLanes = 0;
14879 0 !== currentEventTransitionLane &&
14880 (shouldAttemptEagerTransition() &&
14881 (syncTransitionLanes = currentEventTransitionLane),
14882 (currentEventTransitionLane = 0));
14883 for (
14884 var currentTime = now(), prev = null, root = firstScheduledRoot;
14885 null !== root;
14886
14887 ) {
14888 var next = root.next,
14889 nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime);
14890 if (0 === nextLanes)
14891 (root.next = null),
14892 null === prev ? (firstScheduledRoot = next) : (prev.next = next),
14893 null === next && (lastScheduledRoot = prev);
14894 else if (
14895 ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3))
14896 )
14897 mightHavePendingSyncWork = !0;
14898 root = next;
14899 }
14900 flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1);
14901}
14902function scheduleTaskForRootDuringMicrotask(root, currentTime) {
14903 for (
14904 var suspendedLanes = root.suspendedLanes,

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…