Home / Function/ throwInvalidReact() — react Function Reference

throwInvalidReact() — react Function Reference

Architecture documentation for the throwInvalidReact() function in ValidateNoUntransformedReferences.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  fd74cbf5_70fe_dfe3_61f3_388ace207e52["throwInvalidReact()"]
  93f3a2c7_a7ce_3c94_87fe_ee7d66d9b64b["ValidateNoUntransformedReferences.ts"]
  fd74cbf5_70fe_dfe3_61f3_388ace207e52 -->|defined in| 93f3a2c7_a7ce_3c94_87fe_ee7d66d9b64b
  6eae54a5_62d8_1643_47df_9a08317a25f0["assertValidEffectImportReference()"]
  6eae54a5_62d8_1643_47df_9a08317a25f0 -->|calls| fd74cbf5_70fe_dfe3_61f3_388ace207e52
  b787f702_4820_222e_b5ea_b5e4b91c803c["assertValidFireImportReference()"]
  b787f702_4820_222e_b5ea_b5e4b91c803c -->|calls| fd74cbf5_70fe_dfe3_61f3_388ace207e52
  73346565_783f_1426_1d29_3d461dabc0a1["throwInvalidReact()"]
  fd74cbf5_70fe_dfe3_61f3_388ace207e52 -->|calls| 73346565_783f_1426_1d29_3d461dabc0a1
  eaa25847_803a_a160_25ce_fa2699f69d1c["throwDiagnostic()"]
  fd74cbf5_70fe_dfe3_61f3_388ace207e52 -->|calls| eaa25847_803a_a160_25ce_fa2699f69d1c
  style fd74cbf5_70fe_dfe3_61f3_388ace207e52 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Entrypoint/ValidateNoUntransformedReferences.ts lines 22–32

function throwInvalidReact(
  options: CompilerDiagnosticOptions,
  {logger, filename}: TraversalState,
): never {
  logger?.logEvent(filename, {
    kind: 'CompileError',
    fnLoc: null,
    detail: new CompilerDiagnostic(options),
  });
  CompilerError.throwDiagnostic(options);
}

Domain

Subdomains

Frequently Asked Questions

What does throwInvalidReact() do?
throwInvalidReact() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Entrypoint/ValidateNoUntransformedReferences.ts.
Where is throwInvalidReact() defined?
throwInvalidReact() is defined in compiler/packages/babel-plugin-react-compiler/src/Entrypoint/ValidateNoUntransformedReferences.ts at line 22.
What does throwInvalidReact() call?
throwInvalidReact() calls 2 function(s): throwDiagnostic, throwInvalidReact.
What calls throwInvalidReact()?
throwInvalidReact() is called by 2 function(s): assertValidEffectImportReference, assertValidFireImportReference.

Analyze Your Own Codebase

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

Try Supermodel Free