Home / Function/ fiberIsPortaledIntoHost() — react Function Reference

fiberIsPortaledIntoHost() — react Function Reference

Architecture documentation for the fiberIsPortaledIntoHost() function in ReactFiberTreeReflection.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  ed75d4c0_fa31_8c8f_78e4_8fdd5f54c595["fiberIsPortaledIntoHost()"]
  0dbcf9fa_e6db_e53a_9527_79526654a3ff["ReactFiberTreeReflection.js"]
  ed75d4c0_fa31_8c8f_78e4_8fdd5f54c595 -->|defined in| 0dbcf9fa_e6db_e53a_9527_79526654a3ff
  style ed75d4c0_fa31_8c8f_78e4_8fdd5f54c595 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberTreeReflection.js lines 412–425

export function fiberIsPortaledIntoHost(fiber: Fiber): boolean {
  let foundPortalParent = false;
  let parent = fiber.return;
  while (parent !== null) {
    if (parent.tag === HostPortal) {
      foundPortalParent = true;
    }
    if (parent.tag === HostRoot || parent.tag === HostComponent) {
      break;
    }
    parent = parent.return;
  }
  return foundPortalParent;
}

Domain

Subdomains

Frequently Asked Questions

What does fiberIsPortaledIntoHost() do?
fiberIsPortaledIntoHost() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberTreeReflection.js.
Where is fiberIsPortaledIntoHost() defined?
fiberIsPortaledIntoHost() is defined in packages/react-reconciler/src/ReactFiberTreeReflection.js at line 412.

Analyze Your Own Codebase

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

Try Supermodel Free