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

Function ReactFiberCompleteWork

code/composition/public/app.js:10686–11119  ·  view source on GitHub ↗
(config, hostContext, legacyContext, newContext, hydrationContext)

Source from the content-addressed store, hash-verified

10684};
10685
10686var ReactFiberCompleteWork = function (config, hostContext, legacyContext, newContext, hydrationContext) {
10687 var createInstance = config.createInstance,
10688 createTextInstance = config.createTextInstance,
10689 appendInitialChild = config.appendInitialChild,
10690 finalizeInitialChildren = config.finalizeInitialChildren,
10691 prepareUpdate = config.prepareUpdate,
10692 mutation = config.mutation,
10693 persistence = config.persistence;
10694 var getRootHostContainer = hostContext.getRootHostContainer,
10695 popHostContext = hostContext.popHostContext,
10696 getHostContext = hostContext.getHostContext,
10697 popHostContainer = hostContext.popHostContainer;
10698 var popLegacyContextProvider = legacyContext.popContextProvider,
10699 popTopLevelLegacyContextObject = legacyContext.popTopLevelContextObject;
10700 var popProvider = newContext.popProvider;
10701 var prepareToHydrateHostInstance = hydrationContext.prepareToHydrateHostInstance,
10702 prepareToHydrateHostTextInstance = hydrationContext.prepareToHydrateHostTextInstance,
10703 popHydrationState = hydrationContext.popHydrationState;
10704
10705
10706 function markUpdate(workInProgress) {
10707 // Tag the fiber with an update effect. This turns a Placement into
10708 // an UpdateAndPlacement.
10709 workInProgress.effectTag |= Update;
10710 }
10711
10712 function markRef(workInProgress) {
10713 workInProgress.effectTag |= Ref;
10714 }
10715
10716 function appendAllReturns(returns, workInProgress) {
10717 var node = workInProgress.stateNode;
10718 if (node) {
10719 node['return'] = workInProgress;
10720 }
10721 while (node !== null) {
10722 if (node.tag === HostComponent || node.tag === HostText || node.tag === HostPortal) {
10723 invariant(false, 'A call cannot have host component children.');
10724 } else if (node.tag === ReturnComponent) {
10725 returns.push(node.pendingProps.value);
10726 } else if (node.child !== null) {
10727 node.child['return'] = node;
10728 node = node.child;
10729 continue;
10730 }
10731 while (node.sibling === null) {
10732 if (node['return'] === null || node['return'] === workInProgress) {
10733 return;
10734 }
10735 node = node['return'];
10736 }
10737 node.sibling['return'] = node['return'];
10738 node = node.sibling;
10739 }
10740 }
10741
10742 function moveCallToHandlerPhase(current, workInProgress, renderExpirationTime) {
10743 var props = workInProgress.memoizedProps;

Callers 1

ReactFiberSchedulerFunction · 0.70

Calls 6

markUpdateFunction · 0.70
invariantFunction · 0.70
appendAllChildrenFunction · 0.70
getRootHostContainerFunction · 0.70
getHostContextFunction · 0.70

Tested by

no test coverage detected