popToNextHostParent() — react Function Reference
Architecture documentation for the popToNextHostParent() function in ReactFiberHydrationContext.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 6b27a70e_e4c9_73ee_c331_a59342af28a3["popToNextHostParent()"] 4bc7109f_638d_d9f7_bf47_6ec55b2fa128["ReactFiberHydrationContext.js"] 6b27a70e_e4c9_73ee_c331_a59342af28a3 -->|defined in| 4bc7109f_638d_d9f7_bf47_6ec55b2fa128 b741356a_b031_e7cd_ea5d_ed59f056748d["popHydrationState()"] b741356a_b031_e7cd_ea5d_ed59f056748d -->|calls| 6b27a70e_e4c9_73ee_c331_a59342af28a3 7e6a617a_3b89_4b2c_0370_fe60e21640bb["popHydrationStateOnInterruptedWork()"] 7e6a617a_3b89_4b2c_0370_fe60e21640bb -->|calls| 6b27a70e_e4c9_73ee_c331_a59342af28a3 style 6b27a70e_e4c9_73ee_c331_a59342af28a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactFiberHydrationContext.js lines 715–732
function popToNextHostParent(fiber: Fiber): void {
hydrationParentFiber = fiber.return;
while (hydrationParentFiber) {
switch (hydrationParentFiber.tag) {
case HostComponent:
case ActivityComponent:
case SuspenseComponent:
rootOrSingletonContext = false;
return;
case HostSingleton:
case HostRoot:
rootOrSingletonContext = true;
return;
default:
hydrationParentFiber = hydrationParentFiber.return;
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does popToNextHostParent() do?
popToNextHostParent() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberHydrationContext.js.
Where is popToNextHostParent() defined?
popToNextHostParent() is defined in packages/react-reconciler/src/ReactFiberHydrationContext.js at line 715.
What calls popToNextHostParent()?
popToNextHostParent() is called by 2 function(s): popHydrationState, popHydrationStateOnInterruptedWork.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free