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

Function getUpdateExpirationTime

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

Source from the content-addressed store, hash-verified

7330}
7331
7332function getUpdateExpirationTime(fiber) {
7333 switch (fiber.tag) {
7334 case HostRoot:
7335 case ClassComponent:
7336 var updateQueue = fiber.updateQueue;
7337 if (updateQueue === null) {
7338 return NoWork;
7339 }
7340 return updateQueue.expirationTime;
7341 default:
7342 return NoWork;
7343 }
7344}
7345
7346function getStateFromUpdate(update, instance, prevState, props) {
7347 var partialState = update.partialState;

Callers 1

resetExpirationTimeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected