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

Function updateFunctionComponent

docs/index.js:9139–9165  ·  view source on GitHub ↗
(
  current,
  workInProgress,
  Component,
  nextProps,
  renderLanes
)

Source from the content-addressed store, hash-verified

9137 }
9138}
9139function updateFunctionComponent(
9140 current,
9141 workInProgress,
9142 Component,
9143 nextProps,
9144 renderLanes
9145) {
9146 prepareToReadContext(workInProgress);
9147 Component = renderWithHooks(
9148 current,
9149 workInProgress,
9150 Component,
9151 nextProps,
9152 void 0,
9153 renderLanes
9154 );
9155 nextProps = checkDidRenderIdHook();
9156 if (null !== current && !didReceiveUpdate)
9157 return (
9158 bailoutHooks(current, workInProgress, renderLanes),
9159 bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
9160 );
9161 isHydrating && nextProps && pushMaterializedTreeId(workInProgress);
9162 workInProgress.flags |= 1;
9163 reconcileChildren(current, workInProgress, Component, renderLanes);
9164 return workInProgress.child;
9165}
9166function replayFunctionComponent(
9167 current,
9168 workInProgress,

Callers 2

beginWorkFunction · 0.85

Calls 11

prepareToReadContextFunction · 0.85
renderWithHooksFunction · 0.85
checkDidRenderIdHookFunction · 0.85
bailoutHooksFunction · 0.85
pushMaterializedTreeIdFunction · 0.85
reconcileChildrenFunction · 0.85
getComponentNameFromTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…