Home / Function/ isActionableDiagnostic() — react Function Reference

isActionableDiagnostic() — react Function Reference

Architecture documentation for the isActionableDiagnostic() function in reactCompiler.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  4262736a_f460_8cc7_9887_8c022cd5a5e0["isActionableDiagnostic()"]
  73dc1103_e33f_6e55_0717_0792300bc7e8["reactCompiler.ts"]
  4262736a_f460_8cc7_9887_8c022cd5a5e0 -->|defined in| 73dc1103_e33f_6e55_0717_0792300bc7e8
  e95f9c85_1f33_ee64_30a7_3e94ca70b783["logger.logEvent()"]
  e95f9c85_1f33_ee64_30a7_3e94ca70b783 -->|calls| 4262736a_f460_8cc7_9887_8c022cd5a5e0
  style 4262736a_f460_8cc7_9887_8c022cd5a5e0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/react-compiler-healthcheck/src/checks/reactCompiler.ts lines 56–69

function isActionableDiagnostic(detail: CompilerErrorDetailOptions) {
  switch (detail.severity) {
    case ErrorSeverity.InvalidReact:
    case ErrorSeverity.InvalidJS:
      return true;
    case ErrorSeverity.InvalidConfig:
    case ErrorSeverity.Invariant:
    case ErrorSeverity.CannotPreserveMemoization:
    case ErrorSeverity.Todo:
      return false;
    default:
      throw new Error(`Unhandled error severity \`${detail.severity}\``);
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isActionableDiagnostic() do?
isActionableDiagnostic() is a function in the react codebase, defined in compiler/packages/react-compiler-healthcheck/src/checks/reactCompiler.ts.
Where is isActionableDiagnostic() defined?
isActionableDiagnostic() is defined in compiler/packages/react-compiler-healthcheck/src/checks/reactCompiler.ts at line 56.
What calls isActionableDiagnostic()?
isActionableDiagnostic() is called by 1 function(s): logger.logEvent.

Analyze Your Own Codebase

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

Try Supermodel Free