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

Function syncUpdates

code/new-context-api/public/app.js:12900–12908  ·  view source on GitHub ↗
(fn, a, b, c, d)

Source from the content-addressed store, hash-verified

12898 }
12899 }
12900 function syncUpdates(fn, a, b, c, d) {
12901 var previousExpirationContext = expirationContext;
12902 expirationContext = Sync;
12903 try {
12904 return fn(a, b, c, d);
12905 } finally {
12906 expirationContext = previousExpirationContext;
12907 }
12908 }
12909
12910 // TODO: Everything below this is written as if it has been lifted to the
12911 // 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