Home / Function/ isStableRefType() — react Function Reference

isStableRefType() — react Function Reference

Architecture documentation for the isStableRefType() function in CollectReactiveIdentifiers.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  f3301f69_e1c4_2764_56ed_201c37c731c4["isStableRefType()"]
  4021b024_bc48_5236_4c88_793e93a1cbe0["CollectReactiveIdentifiers.ts"]
  f3301f69_e1c4_2764_56ed_201c37c731c4 -->|defined in| 4021b024_bc48_5236_4c88_793e93a1cbe0
  a9c6b7d9_4ec5_27f1_c527_5516a037bb60["visitPrunedScope()"]
  a9c6b7d9_4ec5_27f1_c527_5516a037bb60 -->|calls| f3301f69_e1c4_2764_56ed_201c37c731c4
  6e7c932f_5e2d_52c4_1399_ff365b3858b6["isUseRefType()"]
  f3301f69_e1c4_2764_56ed_201c37c731c4 -->|calls| 6e7c932f_5e2d_52c4_1399_ff365b3858b6
  style f3301f69_e1c4_2764_56ed_201c37c731c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CollectReactiveIdentifiers.ts lines 64–69

function isStableRefType(
  identifier: Identifier,
  reactiveIdentifiers: Set<IdentifierId>,
): boolean {
  return isUseRefType(identifier) && !reactiveIdentifiers.has(identifier.id);
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isStableRefType() do?
isStableRefType() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CollectReactiveIdentifiers.ts.
Where is isStableRefType() defined?
isStableRefType() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CollectReactiveIdentifiers.ts at line 64.
What does isStableRefType() call?
isStableRefType() calls 1 function(s): isUseRefType.
What calls isStableRefType()?
isStableRefType() is called by 1 function(s): visitPrunedScope.

Analyze Your Own Codebase

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

Try Supermodel Free