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

Function ensureRootIsScheduled

docs/index.js:14822–14832  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

14820 isFlushingWork = !1,
14821 currentEventTransitionLane = 0;
14822function ensureRootIsScheduled(root) {
14823 root !== lastScheduledRoot &&
14824 null === root.next &&
14825 (null === lastScheduledRoot
14826 ? (firstScheduledRoot = lastScheduledRoot = root)
14827 : (lastScheduledRoot = lastScheduledRoot.next = root));
14828 mightHavePendingSyncWork = !0;
14829 didScheduleMicrotask ||
14830 ((didScheduleMicrotask = !0),
14831 scheduleImmediateTask(processRootScheduleInMicrotask));
14832}
14833function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
14834 if (!isFlushingWork && mightHavePendingSyncWork) {
14835 isFlushingWork = !0;

Callers 10

scheduleUpdateOnFiberFunction · 0.85
performWorkOnRootFunction · 0.85
renderRootConcurrentFunction · 0.85
commitRootImplFunction · 0.85
captureCommitPhaseErrorFunction · 0.85
pingSuspendedRootFunction · 0.85
retryTimedOutBoundaryFunction · 0.85
dispatchEventFunction · 0.85
index.jsFile · 0.85

Calls 1

scheduleImmediateTaskFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…