Home / Function/ isStableType() — react Function Reference

isStableType() — react Function Reference

Architecture documentation for the isStableType() function in HIR.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  b5555c52_b6db_0e04_9c88_0a537ac1560e["isStableType()"]
  18a78965_f593_105b_e5e8_07001321c2ec["HIR.ts"]
  b5555c52_b6db_0e04_9c88_0a537ac1560e -->|defined in| 18a78965_f593_105b_e5e8_07001321c2ec
  36a0c409_cefb_4a64_1bea_c725d68c185c["isSetStateType()"]
  b5555c52_b6db_0e04_9c88_0a537ac1560e -->|calls| 36a0c409_cefb_4a64_1bea_c725d68c185c
  fb87b7d5_3ff5_3bda_acfb_291f7d63bbb2["isSetActionStateType()"]
  b5555c52_b6db_0e04_9c88_0a537ac1560e -->|calls| fb87b7d5_3ff5_3bda_acfb_291f7d63bbb2
  999c03f8_5092_77b8_4f4d_11692b022fb1["isDispatcherType()"]
  b5555c52_b6db_0e04_9c88_0a537ac1560e -->|calls| 999c03f8_5092_77b8_4f4d_11692b022fb1
  6e7c932f_5e2d_52c4_1399_ff365b3858b6["isUseRefType()"]
  b5555c52_b6db_0e04_9c88_0a537ac1560e -->|calls| 6e7c932f_5e2d_52c4_1399_ff365b3858b6
  ddacc973_c767_0dc8_cd01_8fef040a876a["isStartTransitionType()"]
  b5555c52_b6db_0e04_9c88_0a537ac1560e -->|calls| ddacc973_c767_0dc8_cd01_8fef040a876a
  49d7c389_800c_6296_d859_637087269300["isSetOptimisticType()"]
  b5555c52_b6db_0e04_9c88_0a537ac1560e -->|calls| 49d7c389_800c_6296_d859_637087269300
  style b5555c52_b6db_0e04_9c88_0a537ac1560e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts lines 1902–1911

export function isStableType(id: Identifier): boolean {
  return (
    isSetStateType(id) ||
    isSetActionStateType(id) ||
    isDispatcherType(id) ||
    isUseRefType(id) ||
    isStartTransitionType(id) ||
    isSetOptimisticType(id)
  );
}

Subdomains

Frequently Asked Questions

What does isStableType() do?
isStableType() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts.
Where is isStableType() defined?
isStableType() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts at line 1902.
What does isStableType() call?
isStableType() calls 6 function(s): isDispatcherType, isSetActionStateType, isSetOptimisticType, isSetStateType, isStartTransitionType, isUseRefType.

Analyze Your Own Codebase

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

Try Supermodel Free