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

Function workLoop

code/composition/public/app.js:13389–13401  ·  view source on GitHub ↗
(isAsync)

Source from the content-addressed store, hash-verified

13387 }
13388
13389 function workLoop(isAsync) {
13390 if (!isAsync) {
13391 // Flush all expired work.
13392 while (nextUnitOfWork !== null) {
13393 nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
13394 }
13395 } else {
13396 // Flush asynchronous work until the deadline runs out of time.
13397 while (nextUnitOfWork !== null && !shouldYield()) {
13398 nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
13399 }
13400 }
13401 }
13402
13403 function renderRoot(root, expirationTime, isAsync) {
13404 !!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