MCPcopy Create free account
hub / github.com/caseywebdev/react-list / replaySuspendedUnitOfWork

Function replaySuspendedUnitOfWork

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

Source from the content-addressed store, hash-verified

14372 null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
14373}
14374function replaySuspendedUnitOfWork(unitOfWork) {
14375 var next = unitOfWork;
14376 var current = next.alternate;
14377 switch (next.tag) {
14378 case 15:
14379 case 0:
14380 next = replayFunctionComponent(
14381 current,
14382 next,
14383 next.pendingProps,
14384 next.type,
14385 void 0,
14386 workInProgressRootRenderLanes
14387 );
14388 break;
14389 case 11:
14390 next = replayFunctionComponent(
14391 current,
14392 next,
14393 next.pendingProps,
14394 next.type.render,
14395 next.ref,
14396 workInProgressRootRenderLanes
14397 );
14398 break;
14399 case 5:
14400 resetHooksOnUnwind(next);
14401 default:
14402 unwindInterruptedWork(current, next),
14403 (next = workInProgress =
14404 resetWorkInProgress(next, entangledRenderLanes)),
14405 (next = beginWork(current, next, entangledRenderLanes));
14406 }
14407 unitOfWork.memoizedProps = unitOfWork.pendingProps;
14408 null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
14409}
14410function throwAndUnwindWorkLoop(
14411 root,
14412 unitOfWork,

Callers 1

renderRootConcurrentFunction · 0.85

Calls 7

replayFunctionComponentFunction · 0.85
resetHooksOnUnwindFunction · 0.85
unwindInterruptedWorkFunction · 0.85
resetWorkInProgressFunction · 0.85
beginWorkFunction · 0.85
completeUnitOfWorkFunction · 0.85
runWithFiberInDEVFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…