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

Function insertUpdateIntoQueue

code/new-context-api/public/app.js:7253–7265  ·  view source on GitHub ↗
(queue, update)

Source from the content-addressed store, hash-verified

7251}
7252
7253function insertUpdateIntoQueue(queue, update) {
7254 // Append the update to the end of the list.
7255 if (queue.last === null) {
7256 // Queue is empty
7257 queue.first = queue.last = update;
7258 } else {
7259 queue.last.next = update;
7260 queue.last = update;
7261 }
7262 if (queue.expirationTime === NoWork || queue.expirationTime > update.expirationTime) {
7263 queue.expirationTime = update.expirationTime;
7264 }
7265}
7266
7267var q1 = void 0;
7268var q2 = void 0;

Callers 1

insertUpdateIntoFiberFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected