MCPcopy Index your code
hub / github.com/caseywebdev/react-list / unwindUnitOfWork

Function unwindUnitOfWork

docs/index.js:14496–14518  ·  view source on GitHub ↗
(unitOfWork, skipSiblings)

Source from the content-addressed store, hash-verified

14494 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);
14495}
14496function unwindUnitOfWork(unitOfWork, skipSiblings) {
14497 do {
14498 var next = unwindWork(unitOfWork.alternate, unitOfWork);
14499 if (null !== next) {
14500 next.flags &= 32767;
14501 workInProgress = next;
14502 return;
14503 }
14504 next = unitOfWork.return;
14505 null !== next &&
14506 ((next.flags |= 32768), (next.subtreeFlags = 0), (next.deletions = null));
14507 if (
14508 !skipSiblings &&
14509 ((unitOfWork = unitOfWork.sibling), null !== unitOfWork)
14510 ) {
14511 workInProgress = unitOfWork;
14512 return;
14513 }
14514 workInProgress = unitOfWork = next;
14515 } while (null !== unitOfWork);
14516 workInProgressRootExitStatus = 6;
14517 workInProgress = null;
14518}
14519function commitRoot(
14520 root,
14521 recoverableErrors,

Callers 2

throwAndUnwindWorkLoopFunction · 0.85
completeUnitOfWorkFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…