updateSuspensePrimaryChildren() — react Function Reference
Architecture documentation for the updateSuspensePrimaryChildren() function in ReactFiberBeginWork.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 8218aaad_17ca_edea_e451_2a52276c87ea["updateSuspensePrimaryChildren()"] 0be70812_cc0c_b210_f84f_8e61dd5f831c["ReactFiberBeginWork.js"] 8218aaad_17ca_edea_e451_2a52276c87ea -->|defined in| 0be70812_cc0c_b210_f84f_8e61dd5f831c f4acdab6_f680_af63_8940_0259a68c2f48["updateSuspenseComponent()"] f4acdab6_f680_af63_8940_0259a68c2f48 -->|calls| 8218aaad_17ca_edea_e451_2a52276c87ea 34d657a1_f8c8_f0b5_e2d8_cba9518e0da2["updateWorkInProgressOffscreenFiber()"] 8218aaad_17ca_edea_e451_2a52276c87ea -->|calls| 34d657a1_f8c8_f0b5_e2d8_cba9518e0da2 style 8218aaad_17ca_edea_e451_2a52276c87ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactFiberBeginWork.js lines 2715–2750
function updateSuspensePrimaryChildren(
current: Fiber,
workInProgress: Fiber,
primaryChildren: $FlowFixMe,
renderLanes: Lanes,
) {
const currentPrimaryChildFragment: Fiber = (current.child: any);
const currentFallbackChildFragment: Fiber | null =
currentPrimaryChildFragment.sibling;
const primaryChildFragment = updateWorkInProgressOffscreenFiber(
currentPrimaryChildFragment,
{
mode: 'visible',
children: primaryChildren,
},
);
if (!disableLegacyMode && (workInProgress.mode & ConcurrentMode) === NoMode) {
primaryChildFragment.lanes = renderLanes;
}
primaryChildFragment.return = workInProgress;
primaryChildFragment.sibling = null;
if (currentFallbackChildFragment !== null) {
// Delete the fallback child fragment
const deletions = workInProgress.deletions;
if (deletions === null) {
workInProgress.deletions = [currentFallbackChildFragment];
workInProgress.flags |= ChildDeletion;
} else {
deletions.push(currentFallbackChildFragment);
}
}
workInProgress.child = primaryChildFragment;
return primaryChildFragment;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does updateSuspensePrimaryChildren() do?
updateSuspensePrimaryChildren() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberBeginWork.js.
Where is updateSuspensePrimaryChildren() defined?
updateSuspensePrimaryChildren() is defined in packages/react-reconciler/src/ReactFiberBeginWork.js at line 2715.
What does updateSuspensePrimaryChildren() call?
updateSuspensePrimaryChildren() calls 1 function(s): updateWorkInProgressOffscreenFiber.
What calls updateSuspensePrimaryChildren()?
updateSuspensePrimaryChildren() is called by 1 function(s): updateSuspenseComponent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free