Home / Function/ isScopeActive() — react Function Reference

isScopeActive() — react Function Reference

Architecture documentation for the isScopeActive() function in visitors.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  04fbfd80_5660_5399_93fe_70bf0d466dcb["isScopeActive()"]
  5ffcc39a_a87d_d30c_d2cd_be7a39db81a1["ScopeBlockTraversal"]
  04fbfd80_5660_5399_93fe_70bf0d466dcb -->|defined in| 5ffcc39a_a87d_d30c_d2cd_be7a39db81a1
  e4202808_c854_fd63_c981_990ad95d6125["isScopeActive()"]
  04fbfd80_5660_5399_93fe_70bf0d466dcb -->|calls| e4202808_c854_fd63_c981_990ad95d6125
  style 04fbfd80_5660_5399_93fe_70bf0d466dcb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts lines 1300–1302

  isScopeActive(scopeId: ScopeId): boolean {
    return this.#activeScopes.indexOf(scopeId) !== -1;
  }

Subdomains

Frequently Asked Questions

What does isScopeActive() do?
isScopeActive() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts.
Where is isScopeActive() defined?
isScopeActive() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts at line 1300.
What does isScopeActive() call?
isScopeActive() calls 1 function(s): isScopeActive.

Analyze Your Own Codebase

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

Try Supermodel Free