MCPcopy Index your code
hub / github.com/plotly/dash / flushSyncCallbacksOnlyInLegacyMode

Function flushSyncCallbacksOnlyInLegacyMode

dash/deps/react-dom@18.2.0.js:12024–12033  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12022 scheduleSyncCallback(callback);
12023 }
12024 function flushSyncCallbacksOnlyInLegacyMode() {
12025 // Only flushes the queue if there's a legacy sync callback scheduled.
12026 // TODO: There's only a single type of callback: performSyncOnWorkOnRoot. So
12027 // it might make more sense for the queue to be a list of roots instead of a
12028 // list of generic callbacks. Then we can have two: one for legacy roots, one
12029 // for concurrent roots. And this method would only flush the legacy ones.
12030 if (includesLegacySyncCallbacks) {
12031 flushSyncCallbacks();
12032 }
12033 }
12034 function flushSyncCallbacks() {
12035 if (!isFlushingSyncQueue && syncQueue !== null) {
12036 // Prevent re-entrance.

Callers 2

scheduleUpdateOnFiberFunction · 0.70
batchedUpdates$1Function · 0.70

Calls 1

flushSyncCallbacksFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…