MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / flushControlled

Function flushControlled

code/composition/public/app.js:14125–14136  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

14123 }
14124
14125 function flushControlled(fn) {
14126 var previousIsBatchingUpdates = isBatchingUpdates;
14127 isBatchingUpdates = true;
14128 try {
14129 syncUpdates(fn);
14130 } finally {
14131 isBatchingUpdates = previousIsBatchingUpdates;
14132 if (!isBatchingUpdates && !isRendering) {
14133 performWork(Sync, false, null);
14134 }
14135 }
14136 }
14137
14138 return {
14139 recalculateCurrentTime: recalculateCurrentTime,

Callers

nothing calls this directly

Calls 2

syncUpdatesFunction · 0.70
performWorkFunction · 0.70

Tested by

no test coverage detected