MCPcopy
hub / github.com/facebook/react / updateScopeComponent

Function updateScopeComponent

packages/react-reconciler/src/ReactFiberBeginWork.js:3676–3686  ·  view source on GitHub ↗
(
  current: null | Fiber,
  workInProgress: Fiber,
  renderLanes: Lanes,
)

Source from the content-addressed store, hash-verified

3674}
3675
3676function updateScopeComponent(
3677 current: null | Fiber,
3678 workInProgress: Fiber,
3679 renderLanes: Lanes,
3680) {
3681 const nextProps = workInProgress.pendingProps;
3682 const nextChildren = nextProps.children;
3683 markRef(current, workInProgress);
3684 reconcileChildren(current, workInProgress, nextChildren, renderLanes);
3685 return workInProgress.child;
3686}
3687
3688export function markWorkInProgressReceivedUpdate() {
3689 didReceiveUpdate = true;

Callers 1

beginWorkFunction · 0.85

Calls 2

markRefFunction · 0.85
reconcileChildrenFunction · 0.85

Tested by

no test coverage detected