Home / Function/ updateScopeComponent() — react Function Reference

updateScopeComponent() — react Function Reference

Architecture documentation for the updateScopeComponent() function in ReactFiberBeginWork.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  7fe46cc0_0238_85cf_4617_39ebe0b19075["updateScopeComponent()"]
  0be70812_cc0c_b210_f84f_8e61dd5f831c["ReactFiberBeginWork.js"]
  7fe46cc0_0238_85cf_4617_39ebe0b19075 -->|defined in| 0be70812_cc0c_b210_f84f_8e61dd5f831c
  235e1db1_02a4_912f_7d82_ea6636c850c0["beginWork()"]
  235e1db1_02a4_912f_7d82_ea6636c850c0 -->|calls| 7fe46cc0_0238_85cf_4617_39ebe0b19075
  add16f45_ce6d_6414_6371_4a68ab583d28["markRef()"]
  7fe46cc0_0238_85cf_4617_39ebe0b19075 -->|calls| add16f45_ce6d_6414_6371_4a68ab583d28
  cf5641cc_b89e_d6b2_5d40_41ad5bbdd682["reconcileChildren()"]
  7fe46cc0_0238_85cf_4617_39ebe0b19075 -->|calls| cf5641cc_b89e_d6b2_5d40_41ad5bbdd682
  style 7fe46cc0_0238_85cf_4617_39ebe0b19075 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberBeginWork.js lines 3724–3734

function updateScopeComponent(
  current: null | Fiber,
  workInProgress: Fiber,
  renderLanes: Lanes,
) {
  const nextProps = workInProgress.pendingProps;
  const nextChildren = nextProps.children;
  markRef(current, workInProgress);
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does updateScopeComponent() do?
updateScopeComponent() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberBeginWork.js.
Where is updateScopeComponent() defined?
updateScopeComponent() is defined in packages/react-reconciler/src/ReactFiberBeginWork.js at line 3724.
What does updateScopeComponent() call?
updateScopeComponent() calls 2 function(s): markRef, reconcileChildren.
What calls updateScopeComponent()?
updateScopeComponent() is called by 1 function(s): beginWork.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free