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

Function syncUpdates

code/controlled-uncontrolled/public/app.js:12863–12871  ·  view source on GitHub ↗
(fn, a, b, c, d)

Source from the content-addressed store, hash-verified

12861 }
12862 }
12863 function syncUpdates(fn, a, b, c, d) {
12864 var previousExpirationContext = expirationContext;
12865 expirationContext = Sync;
12866 try {
12867 return fn(a, b, c, d);
12868 } finally {
12869 expirationContext = previousExpirationContext;
12870 }
12871 }
12872
12873 // TODO: Everything below this is written as if it has been lifted to the
12874 // renderers. I'll do this in a follow-up.

Callers 2

flushSyncFunction · 0.70
flushControlledFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected