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

Function recalculateCurrentTime

code/new-context-api/public/app.js:12883–12888  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12881 }
12882
12883 function recalculateCurrentTime() {
12884 // Subtract initial time so it fits inside 32bits
12885 mostRecentCurrentTimeMs = now() - originalStartTimeMs;
12886 mostRecentCurrentTime = msToExpirationTime(mostRecentCurrentTimeMs);
12887 return mostRecentCurrentTime;
12888 }
12889
12890 function deferredUpdates(fn) {
12891 var previousExpirationContext = expirationContext;

Callers 6

commitRootFunction · 0.70
deferredUpdatesFunction · 0.70
performWorkFunction · 0.70
ReactFiberReconciler$1Function · 0.70

Calls 1

msToExpirationTimeFunction · 0.70

Tested by

no test coverage detected