Home / Function/ pushHiddenContext() — react Function Reference

pushHiddenContext() — react Function Reference

Architecture documentation for the pushHiddenContext() function in ReactFiberHiddenContext.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  f69f1aac_4142_c319_3eb1_b7142dd9a221["pushHiddenContext()"]
  a53113f8_99e9_4566_6c5f_d1534c5c4ca8["ReactFiberHiddenContext.js"]
  f69f1aac_4142_c319_3eb1_b7142dd9a221 -->|defined in| a53113f8_99e9_4566_6c5f_d1534c5c4ca8
  526a99f2_4938_2b27_2b9e_a0a59903cdb5["updateOffscreenComponent()"]
  526a99f2_4938_2b27_2b9e_a0a59903cdb5 -->|calls| f69f1aac_4142_c319_3eb1_b7142dd9a221
  style f69f1aac_4142_c319_3eb1_b7142dd9a221 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberHiddenContext.js lines 38–50

export function pushHiddenContext(fiber: Fiber, context: HiddenContext): void {
  const prevEntangledRenderLanes = getEntangledRenderLanes();
  push(prevEntangledRenderLanesCursor, prevEntangledRenderLanes, fiber);
  push(currentTreeHiddenStackCursor, context, fiber);

  // When rendering a subtree that's currently hidden, we must include all
  // lanes that would have rendered if the hidden subtree hadn't been deferred.
  // That is, in order to reveal content from hidden -> visible, we must commit
  // all the updates that we skipped when we originally hid the tree.
  setEntangledRenderLanes(
    mergeLanes(prevEntangledRenderLanes, context.baseLanes),
  );
}

Domain

Subdomains

Frequently Asked Questions

What does pushHiddenContext() do?
pushHiddenContext() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberHiddenContext.js.
Where is pushHiddenContext() defined?
pushHiddenContext() is defined in packages/react-reconciler/src/ReactFiberHiddenContext.js at line 38.
What calls pushHiddenContext()?
pushHiddenContext() is called by 1 function(s): updateOffscreenComponent.

Analyze Your Own Codebase

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

Try Supermodel Free