MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / workLoop

Function workLoop

code/redux/public/app.js:13502–13514  ·  view source on GitHub ↗
(isAsync)

Source from the content-addressed store, hash-verified

13500 }
13501
13502 function workLoop(isAsync) {
13503 if (!isAsync) {
13504 // Flush all expired work.
13505 while (nextUnitOfWork !== null) {
13506 nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
13507 }
13508 } else {
13509 // Flush asynchronous work until the deadline runs out of time.
13510 while (nextUnitOfWork !== null && !shouldYield()) {
13511 nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
13512 }
13513 }
13514 }
13515
13516 function renderRoot(root, expirationTime, isAsync) {
13517 !!isWorking ? invariant(false, 'renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;

Callers 1

renderRootFunction · 0.70

Calls 2

performUnitOfWorkFunction · 0.70
shouldYieldFunction · 0.70

Tested by

no test coverage detected