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

Function flushControlled

code/controlled-uncontrolled/public/app.js:13311–13322  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13309 }
13310
13311 function flushControlled(fn) {
13312 var previousIsBatchingUpdates = isBatchingUpdates;
13313 isBatchingUpdates = true;
13314 try {
13315 syncUpdates(fn);
13316 } finally {
13317 isBatchingUpdates = previousIsBatchingUpdates;
13318 if (!isBatchingUpdates && !isRendering) {
13319 performWork(Sync, false, null);
13320 }
13321 }
13322 }
13323
13324 return {
13325 recalculateCurrentTime: recalculateCurrentTime,

Callers

nothing calls this directly

Calls 2

syncUpdatesFunction · 0.70
performWorkFunction · 0.70

Tested by

no test coverage detected