retrySuspenseComponentWithoutHydrating() — react Function Reference
Architecture documentation for the retrySuspenseComponentWithoutHydrating() function in ReactFiberBeginWork.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD be4589a2_090c_02a1_d89c_154f9573acc3["retrySuspenseComponentWithoutHydrating()"] 0be70812_cc0c_b210_f84f_8e61dd5f831c["ReactFiberBeginWork.js"] be4589a2_090c_02a1_d89c_154f9573acc3 -->|defined in| 0be70812_cc0c_b210_f84f_8e61dd5f831c a8a1881a_9da1_7942_71cd_b9ab16efd50c["updateDehydratedSuspenseComponent()"] a8a1881a_9da1_7942_71cd_b9ab16efd50c -->|calls| be4589a2_090c_02a1_d89c_154f9573acc3 80f1c189_9114_4d52_32dc_752c9920a1de["mountSuspensePrimaryChildren()"] be4589a2_090c_02a1_d89c_154f9573acc3 -->|calls| 80f1c189_9114_4d52_32dc_752c9920a1de style be4589a2_090c_02a1_d89c_154f9573acc3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactFiberBeginWork.js lines 2842–2868
function retrySuspenseComponentWithoutHydrating(
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 = workInProgress.pendingProps;
const primaryChildren = nextProps.children;
const primaryChildFragment = mountSuspensePrimaryChildren(
workInProgress,
primaryChildren,
renderLanes,
);
// Needs a placement effect because the parent (the Suspense boundary) already
// mounted but this is a new fiber.
primaryChildFragment.flags |= Placement;
workInProgress.memoizedState = null;
return primaryChildFragment;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does retrySuspenseComponentWithoutHydrating() do?
retrySuspenseComponentWithoutHydrating() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberBeginWork.js.
Where is retrySuspenseComponentWithoutHydrating() defined?
retrySuspenseComponentWithoutHydrating() is defined in packages/react-reconciler/src/ReactFiberBeginWork.js at line 2842.
What does retrySuspenseComponentWithoutHydrating() call?
retrySuspenseComponentWithoutHydrating() calls 1 function(s): mountSuspensePrimaryChildren.
What calls retrySuspenseComponentWithoutHydrating()?
retrySuspenseComponentWithoutHydrating() 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