Home / Function/ reuseHiddenContextOnStack() — react Function Reference

reuseHiddenContextOnStack() — react Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberHiddenContext.js lines 52–62

export function reuseHiddenContextOnStack(fiber: Fiber): void {
  // This subtree is not currently hidden, so we don't need to add any lanes
  // to the render lanes. But we still need to push something to avoid a
  // context mismatch. Reuse the existing context on the stack.
  push(prevEntangledRenderLanesCursor, getEntangledRenderLanes(), fiber);
  push(
    currentTreeHiddenStackCursor,
    currentTreeHiddenStackCursor.current,
    fiber,
  );
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free