Home / Function/ pushSuspenseListContext() — react Function Reference

pushSuspenseListContext() — react Function Reference

Architecture documentation for the pushSuspenseListContext() function in ReactFiberSuspenseContext.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  e0222a62_06f5_558d_4e5d_d834d25ce250["pushSuspenseListContext()"]
  be9c7dd4_0030_1768_3ad3_f5acdbd08eef["ReactFiberSuspenseContext.js"]
  e0222a62_06f5_558d_4e5d_d834d25ce250 -->|defined in| be9c7dd4_0030_1768_3ad3_f5acdbd08eef
  52177215_eced_b9dc_62cc_32297ae94438["updateSuspenseListComponent()"]
  52177215_eced_b9dc_62cc_32297ae94438 -->|calls| e0222a62_06f5_558d_4e5d_d834d25ce250
  0b8db832_87fd_e560_8aa8_e2b319c81626["completeWork()"]
  0b8db832_87fd_e560_8aa8_e2b319c81626 -->|calls| e0222a62_06f5_558d_4e5d_d834d25ce250
  style e0222a62_06f5_558d_4e5d_d834d25ce250 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberSuspenseContext.js lines 201–210

export function pushSuspenseListContext(
  fiber: Fiber,
  newContext: SuspenseContext,
): void {
  // Push the current handler in this case since we're not catching at the SuspenseList
  // for typical rows.
  const handlerOnStack = suspenseHandlerStackCursor.current;
  push(suspenseHandlerStackCursor, handlerOnStack, fiber);
  push(suspenseStackCursor, newContext, fiber);
}

Domain

Subdomains

Frequently Asked Questions

What does pushSuspenseListContext() do?
pushSuspenseListContext() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberSuspenseContext.js.
Where is pushSuspenseListContext() defined?
pushSuspenseListContext() is defined in packages/react-reconciler/src/ReactFiberSuspenseContext.js at line 201.
What calls pushSuspenseListContext()?
pushSuspenseListContext() is called by 2 function(s): completeWork, updateSuspenseListComponent.

Analyze Your Own Codebase

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

Try Supermodel Free