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

Function getUpdateExpirationTime

code/composition/public/app.js:8109–8121  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

8107}
8108
8109function getUpdateExpirationTime(fiber) {
8110 switch (fiber.tag) {
8111 case HostRoot:
8112 case ClassComponent:
8113 var updateQueue = fiber.updateQueue;
8114 if (updateQueue === null) {
8115 return NoWork;
8116 }
8117 return updateQueue.expirationTime;
8118 default:
8119 return NoWork;
8120 }
8121}
8122
8123function getStateFromUpdate(update, instance, prevState, props) {
8124 var partialState = update.partialState;

Callers 1

resetExpirationTimeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected