Home / Function/ retryActivityComponentWithoutHydrating() — react Function Reference

retryActivityComponentWithoutHydrating() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b02f5205_6c96_0d34_5a3b_8331d512b06c["retryActivityComponentWithoutHydrating()"]
  0be70812_cc0c_b210_f84f_8e61dd5f831c["ReactFiberBeginWork.js"]
  b02f5205_6c96_0d34_5a3b_8331d512b06c -->|defined in| 0be70812_cc0c_b210_f84f_8e61dd5f831c
  e42a80e0_6c61_140d_2260_b8b8319dc664["updateDehydratedActivityComponent()"]
  e42a80e0_6c61_140d_2260_b8b8319dc664 -->|calls| b02f5205_6c96_0d34_5a3b_8331d512b06c
  6e745d66_1946_5b98_1eeb_037e1c878b67["mountActivityChildren()"]
  b02f5205_6c96_0d34_5a3b_8331d512b06c -->|calls| 6e745d66_1946_5b98_1eeb_037e1c878b67
  59929453_9f09_a335_22ac_e0e931c51842["popSuspenseHandler()"]
  b02f5205_6c96_0d34_5a3b_8331d512b06c -->|calls| 59929453_9f09_a335_22ac_e0e931c51842
  style b02f5205_6c96_0d34_5a3b_8331d512b06c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberBeginWork.js lines 929–960

function retryActivityComponentWithoutHydrating(
  current: Fiber,
  workInProgress: Fiber,
  renderLanes: Lanes,
) {
  // Falling back to client rendering. Because this has performance
  // implications, it's considered a recoverable error, even though the user
  // likely won't observe anything wrong with the UI.

  // This will add the old fiber to the deletion list
  reconcileChildFibers(workInProgress, current.child, null, renderLanes);

  // We're now not suspended nor dehydrated.
  const nextProps: ActivityProps = workInProgress.pendingProps;
  const primaryChildFragment = mountActivityChildren(
    workInProgress,
    nextProps,
    renderLanes,
  );
  // Needs a placement effect because the parent (the Activity boundary) already
  // mounted but this is a new fiber.
  primaryChildFragment.flags |= Placement;

  // If we're not going to hydrate we can't leave it dehydrated if something
  // suspends. In that case we want that to bubble to the nearest parent boundary
  // so we need to pop our own handler that we just pushed.
  popSuspenseHandler(workInProgress);

  workInProgress.memoizedState = null;

  return primaryChildFragment;
}

Domain

Subdomains

Frequently Asked Questions

What does retryActivityComponentWithoutHydrating() do?
retryActivityComponentWithoutHydrating() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberBeginWork.js.
Where is retryActivityComponentWithoutHydrating() defined?
retryActivityComponentWithoutHydrating() is defined in packages/react-reconciler/src/ReactFiberBeginWork.js at line 929.
What does retryActivityComponentWithoutHydrating() call?
retryActivityComponentWithoutHydrating() calls 2 function(s): mountActivityChildren, popSuspenseHandler.
What calls retryActivityComponentWithoutHydrating()?
retryActivityComponentWithoutHydrating() is called by 1 function(s): updateDehydratedActivityComponent.

Analyze Your Own Codebase

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

Try Supermodel Free