MCPcopy Create free account
hub / github.com/BetaSu/big-react / flushSyncCallbacks

Function flushSyncCallbacks

packages/react-reconciler/src/syncTaskQueue.ts:12–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10}
11
12export function flushSyncCallbacks() {
13 if (!isFlushingSyncQueue && syncQueue) {
14 isFlushingSyncQueue = true;
15 try {
16 syncQueue.forEach((callback) => callback());
17 } catch (e) {
18 if (__DEV__) {
19 console.error('flushSyncCallbacks报错', e);
20 }
21 } finally {
22 isFlushingSyncQueue = false;
23 syncQueue = null;
24 }
25 }
26}

Callers 1

flushPassiveEffectsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected