MCPcopy Create free account
hub / github.com/BetaSu/big-react / completeUnitOfWork

Function completeUnitOfWork

packages/react-reconciler/src/workLoop.ts:413–427  ·  view source on GitHub ↗
(fiber: FiberNode)

Source from the content-addressed store, hash-verified

411}
412
413function completeUnitOfWork(fiber: FiberNode) {
414 let node: FiberNode | null = fiber;
415
416 do {
417 completeWork(node);
418 const sibling = node.sibling;
419
420 if (sibling !== null) {
421 workInProgress = sibling;
422 return;
423 }
424 node = node.return;
425 workInProgress = node;
426 } while (node !== null);
427}
428
429function handleThrow(root: FiberRootNode, thrownValue: any): void {
430 /*

Callers 1

performUnitOfWorkFunction · 0.85

Calls 1

completeWorkFunction · 0.90

Tested by

no test coverage detected