hideOrUnhideNearestPortalsOnFiber() — react Function Reference
Architecture documentation for the hideOrUnhideNearestPortalsOnFiber() function in ReactFiberCommitWork.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 59a805c0_c380_fe18_2eca_87082c18ed82["hideOrUnhideNearestPortalsOnFiber()"] e0fbfbd5_47b0_a489_0b36_bbfad9245544["ReactFiberCommitWork.js"] 59a805c0_c380_fe18_2eca_87082c18ed82 -->|defined in| e0fbfbd5_47b0_a489_0b36_bbfad9245544 2d6edb1f_5f07_32cb_4be6_9a87a4e4142a["hideOrUnhideNearestPortals()"] 2d6edb1f_5f07_32cb_4be6_9a87a4e4142a -->|calls| 59a805c0_c380_fe18_2eca_87082c18ed82 b736db36_056d_4f77_968a_91554fd127f9["hideOrUnhideAllChildrenOnFiber()"] 59a805c0_c380_fe18_2eca_87082c18ed82 -->|calls| b736db36_056d_4f77_968a_91554fd127f9 2d6edb1f_5f07_32cb_4be6_9a87a4e4142a["hideOrUnhideNearestPortals()"] 59a805c0_c380_fe18_2eca_87082c18ed82 -->|calls| 2d6edb1f_5f07_32cb_4be6_9a87a4e4142a style 59a805c0_c380_fe18_2eca_87082c18ed82 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactFiberCommitWork.js lines 1257–1282
function hideOrUnhideNearestPortalsOnFiber(fiber: Fiber, isHidden: boolean) {
if (!supportsMutation) {
return;
}
switch (fiber.tag) {
case HostPortal: {
// Found a portal. Switch back to the normal hide/unhide algorithm to
// toggle the visibility of its children.
hideOrUnhideAllChildrenOnFiber(fiber, isHidden);
return;
}
case OffscreenComponent: {
const offscreenState: OffscreenState | null = fiber.memoizedState;
if (offscreenState !== null) {
// Found a nested Offscreen component that is hidden. Don't search any
// deeper. This tree should remain hidden.
} else {
hideOrUnhideNearestPortals(fiber, isHidden);
}
return;
}
default: {
hideOrUnhideNearestPortals(fiber, isHidden);
return;
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does hideOrUnhideNearestPortalsOnFiber() do?
hideOrUnhideNearestPortalsOnFiber() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberCommitWork.js.
Where is hideOrUnhideNearestPortalsOnFiber() defined?
hideOrUnhideNearestPortalsOnFiber() is defined in packages/react-reconciler/src/ReactFiberCommitWork.js at line 1257.
What does hideOrUnhideNearestPortalsOnFiber() call?
hideOrUnhideNearestPortalsOnFiber() calls 2 function(s): hideOrUnhideAllChildrenOnFiber, hideOrUnhideNearestPortals.
What calls hideOrUnhideNearestPortalsOnFiber()?
hideOrUnhideNearestPortalsOnFiber() is called by 1 function(s): hideOrUnhideNearestPortals.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free