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

Function syncUpdates

code/third-party/public/app.js:12772–12780  ·  view source on GitHub ↗
(fn, a, b, c, d)

Source from the content-addressed store, hash-verified

12770 }
12771 }
12772 function syncUpdates(fn, a, b, c, d) {
12773 var previousExpirationContext = expirationContext;
12774 expirationContext = Sync;
12775 try {
12776 return fn(a, b, c, d);
12777 } finally {
12778 expirationContext = previousExpirationContext;
12779 }
12780 }
12781
12782 // TODO: Everything below this is written as if it has been lifted to the
12783 // 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