Home / Function/ mountSuspenseFallbackAfterRetryWithoutHydrating() — react Function Reference

mountSuspenseFallbackAfterRetryWithoutHydrating() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d187177d_7fab_220f_9207_e4af82b37796["mountSuspenseFallbackAfterRetryWithoutHydrating()"]
  0be70812_cc0c_b210_f84f_8e61dd5f831c["ReactFiberBeginWork.js"]
  d187177d_7fab_220f_9207_e4af82b37796 -->|defined in| 0be70812_cc0c_b210_f84f_8e61dd5f831c
  a8a1881a_9da1_7942_71cd_b9ab16efd50c["updateDehydratedSuspenseComponent()"]
  a8a1881a_9da1_7942_71cd_b9ab16efd50c -->|calls| d187177d_7fab_220f_9207_e4af82b37796
  9a90515d_1b46_45ee_c1be_ce882bad30b7["mountWorkInProgressOffscreenFiber()"]
  d187177d_7fab_220f_9207_e4af82b37796 -->|calls| 9a90515d_1b46_45ee_c1be_ce882bad30b7
  style d187177d_7fab_220f_9207_e4af82b37796 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberBeginWork.js lines 2870–2909

function mountSuspenseFallbackAfterRetryWithoutHydrating(
  current: Fiber,
  workInProgress: Fiber,
  primaryChildren: $FlowFixMe,
  fallbackChildren: $FlowFixMe,
  renderLanes: Lanes,
) {
  const fiberMode = workInProgress.mode;
  const primaryChildProps: OffscreenProps = {
    mode: 'visible',
    children: primaryChildren,
  };
  const primaryChildFragment = mountWorkInProgressOffscreenFiber(
    primaryChildProps,
    fiberMode,
    NoLanes,
  );
  const fallbackChildFragment = createFiberFromFragment(
    fallbackChildren,
    fiberMode,
    renderLanes,
    null,
  );
  // Needs a placement effect because the parent (the Suspense
  // boundary) already mounted but this is a new fiber.
  fallbackChildFragment.flags |= Placement;

  primaryChildFragment.return = workInProgress;
  fallbackChildFragment.return = workInProgress;
  primaryChildFragment.sibling = fallbackChildFragment;
  workInProgress.child = primaryChildFragment;

  if (disableLegacyMode || (workInProgress.mode & ConcurrentMode) !== NoMode) {
    // We will have dropped the effect list which contains the
    // deletion. We need to reconcile to delete the current child.
    reconcileChildFibers(workInProgress, current.child, null, renderLanes);
  }

  return fallbackChildFragment;
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free