MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / flushControlled

Function flushControlled

code/communication/public/app.js:14022–14033  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

14020 }
14021
14022 function flushControlled(fn) {
14023 var previousIsBatchingUpdates = isBatchingUpdates;
14024 isBatchingUpdates = true;
14025 try {
14026 syncUpdates(fn);
14027 } finally {
14028 isBatchingUpdates = previousIsBatchingUpdates;
14029 if (!isBatchingUpdates && !isRendering) {
14030 performWork(Sync, false, null);
14031 }
14032 }
14033 }
14034
14035 return {
14036 recalculateCurrentTime: recalculateCurrentTime,

Callers

nothing calls this directly

Calls 2

syncUpdatesFunction · 0.70
performWorkFunction · 0.70

Tested by

no test coverage detected