Home / Function/ updateLegacyHiddenComponent() — react Function Reference

updateLegacyHiddenComponent() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5321231b_2ff1_24fd_d181_f53cdf233503["updateLegacyHiddenComponent()"]
  0be70812_cc0c_b210_f84f_8e61dd5f831c["ReactFiberBeginWork.js"]
  5321231b_2ff1_24fd_d181_f53cdf233503 -->|defined in| 0be70812_cc0c_b210_f84f_8e61dd5f831c
  235e1db1_02a4_912f_7d82_ea6636c850c0["beginWork()"]
  235e1db1_02a4_912f_7d82_ea6636c850c0 -->|calls| 5321231b_2ff1_24fd_d181_f53cdf233503
  526a99f2_4938_2b27_2b9e_a0a59903cdb5["updateOffscreenComponent()"]
  5321231b_2ff1_24fd_d181_f53cdf233503 -->|calls| 526a99f2_4938_2b27_2b9e_a0a59903cdb5
  style 5321231b_2ff1_24fd_d181_f53cdf233503 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberBeginWork.js lines 872–888

function updateLegacyHiddenComponent(
  current: null | Fiber,
  workInProgress: Fiber,
  renderLanes: Lanes,
) {
  const nextProps: LegacyHiddenProps = workInProgress.pendingProps;
  // Note: These happen to have identical begin phases, for now. We shouldn't hold
  // ourselves to this constraint, though. If the behavior diverges, we should
  // fork the function.
  // This just works today because it has the same Props.
  return updateOffscreenComponent(
    current,
    workInProgress,
    renderLanes,
    nextProps,
  );
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does updateLegacyHiddenComponent() do?
updateLegacyHiddenComponent() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberBeginWork.js.
Where is updateLegacyHiddenComponent() defined?
updateLegacyHiddenComponent() is defined in packages/react-reconciler/src/ReactFiberBeginWork.js at line 872.
What does updateLegacyHiddenComponent() call?
updateLegacyHiddenComponent() calls 1 function(s): updateOffscreenComponent.
What calls updateLegacyHiddenComponent()?
updateLegacyHiddenComponent() 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