Home / Function/ mountSuspensePrimaryChildren() — react Function Reference

mountSuspensePrimaryChildren() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  80f1c189_9114_4d52_32dc_752c9920a1de["mountSuspensePrimaryChildren()"]
  0be70812_cc0c_b210_f84f_8e61dd5f831c["ReactFiberBeginWork.js"]
  80f1c189_9114_4d52_32dc_752c9920a1de -->|defined in| 0be70812_cc0c_b210_f84f_8e61dd5f831c
  f4acdab6_f680_af63_8940_0259a68c2f48["updateSuspenseComponent()"]
  f4acdab6_f680_af63_8940_0259a68c2f48 -->|calls| 80f1c189_9114_4d52_32dc_752c9920a1de
  be4589a2_090c_02a1_d89c_154f9573acc3["retrySuspenseComponentWithoutHydrating()"]
  be4589a2_090c_02a1_d89c_154f9573acc3 -->|calls| 80f1c189_9114_4d52_32dc_752c9920a1de
  a8a1881a_9da1_7942_71cd_b9ab16efd50c["updateDehydratedSuspenseComponent()"]
  a8a1881a_9da1_7942_71cd_b9ab16efd50c -->|calls| 80f1c189_9114_4d52_32dc_752c9920a1de
  9a90515d_1b46_45ee_c1be_ce882bad30b7["mountWorkInProgressOffscreenFiber()"]
  80f1c189_9114_4d52_32dc_752c9920a1de -->|calls| 9a90515d_1b46_45ee_c1be_ce882bad30b7
  style 80f1c189_9114_4d52_32dc_752c9920a1de fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberBeginWork.js lines 2611–2629

function mountSuspensePrimaryChildren(
  workInProgress: Fiber,
  primaryChildren: $FlowFixMe,
  renderLanes: Lanes,
) {
  const mode = workInProgress.mode;
  const primaryChildProps: OffscreenProps = {
    mode: 'visible',
    children: primaryChildren,
  };
  const primaryChildFragment = mountWorkInProgressOffscreenFiber(
    primaryChildProps,
    mode,
    renderLanes,
  );
  primaryChildFragment.return = workInProgress;
  workInProgress.child = primaryChildFragment;
  return primaryChildFragment;
}

Domain

Subdomains

Frequently Asked Questions

What does mountSuspensePrimaryChildren() do?
mountSuspensePrimaryChildren() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberBeginWork.js.
Where is mountSuspensePrimaryChildren() defined?
mountSuspensePrimaryChildren() is defined in packages/react-reconciler/src/ReactFiberBeginWork.js at line 2611.
What does mountSuspensePrimaryChildren() call?
mountSuspensePrimaryChildren() calls 1 function(s): mountWorkInProgressOffscreenFiber.
What calls mountSuspensePrimaryChildren()?
mountSuspensePrimaryChildren() is called by 3 function(s): retrySuspenseComponentWithoutHydrating, updateDehydratedSuspenseComponent, updateSuspenseComponent.

Analyze Your Own Codebase

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

Try Supermodel Free