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

Function createUpdateQueue

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

Source from the content-addressed store, hash-verified

7234
7235
7236function createUpdateQueue(baseState) {
7237 var queue = {
7238 baseState: baseState,
7239 expirationTime: NoWork,
7240 first: null,
7241 last: null,
7242 callbackList: null,
7243 hasForceUpdate: false,
7244 isInitialized: false,
7245 capturedValues: null
7246 };
7247 {
7248 queue.isProcessing = false;
7249 }
7250 return queue;
7251}
7252
7253function insertUpdateIntoQueue(queue, update) {
7254 // Append the update to the end of the list.

Callers 1

ensureUpdateQueuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected