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

Function flushControlled

code/one-direction-data-flow/public/app.js:13860–13871  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13858 }
13859
13860 function flushControlled(fn) {
13861 var previousIsBatchingUpdates = isBatchingUpdates;
13862 isBatchingUpdates = true;
13863 try {
13864 syncUpdates(fn);
13865 } finally {
13866 isBatchingUpdates = previousIsBatchingUpdates;
13867 if (!isBatchingUpdates && !isRendering) {
13868 performWork(Sync, false, null);
13869 }
13870 }
13871 }
13872
13873 return {
13874 recalculateCurrentTime: recalculateCurrentTime,

Callers

nothing calls this directly

Calls 2

syncUpdatesFunction · 0.70
performWorkFunction · 0.70

Tested by

no test coverage detected