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

Function getUpdateExpirationTime

code/communication/public/app.js:8006–8018  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

8004}
8005
8006function getUpdateExpirationTime(fiber) {
8007 switch (fiber.tag) {
8008 case HostRoot:
8009 case ClassComponent:
8010 var updateQueue = fiber.updateQueue;
8011 if (updateQueue === null) {
8012 return NoWork;
8013 }
8014 return updateQueue.expirationTime;
8015 default:
8016 return NoWork;
8017 }
8018}
8019
8020function getStateFromUpdate(update, instance, prevState, props) {
8021 var partialState = update.partialState;

Callers 1

resetExpirationTimeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected