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

Function syncUpdates

code/one-direction-data-flow/public/app.js:13412–13420  ·  view source on GitHub ↗
(fn, a, b, c, d)

Source from the content-addressed store, hash-verified

13410 }
13411 }
13412 function syncUpdates(fn, a, b, c, d) {
13413 var previousExpirationContext = expirationContext;
13414 expirationContext = Sync;
13415 try {
13416 return fn(a, b, c, d);
13417 } finally {
13418 expirationContext = previousExpirationContext;
13419 }
13420 }
13421
13422 // TODO: Everything below this is written as if it has been lifted to the
13423 // 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