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

Function completeUnitOfWork

docs/index.js:14467–14495  ·  view source on GitHub ↗
(unitOfWork)

Source from the content-addressed store, hash-verified

14465 } else completeUnitOfWork(unitOfWork);
14466}
14467function completeUnitOfWork(unitOfWork) {
14468 var completedWork = unitOfWork;
14469 do {
14470 if (0 !== (completedWork.flags & 32768)) {
14471 unwindUnitOfWork(
14472 completedWork,
14473 workInProgressRootDidSkipSuspendedSiblings
14474 );
14475 return;
14476 }
14477 unitOfWork = completedWork.return;
14478 var next = completeWork(
14479 completedWork.alternate,
14480 completedWork,
14481 entangledRenderLanes
14482 );
14483 if (null !== next) {
14484 workInProgress = next;
14485 return;
14486 }
14487 completedWork = completedWork.sibling;
14488 if (null !== completedWork) {
14489 workInProgress = completedWork;
14490 return;
14491 }
14492 workInProgress = completedWork = unitOfWork;
14493 } while (null !== completedWork);
14494 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);
14495}
14496function unwindUnitOfWork(unitOfWork, skipSiblings) {
14497 do {
14498 var next = unwindWork(unitOfWork.alternate, unitOfWork);

Callers 4

renderRootConcurrentFunction · 0.85
performUnitOfWorkFunction · 0.85
throwAndUnwindWorkLoopFunction · 0.85

Calls 5

unwindUnitOfWorkFunction · 0.85
completeWorkFunction · 0.85
startProfilerTimerFunction · 0.85
runWithFiberInDEVFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…