Home / Function/ reachable() — react Function Reference

reachable() — react Function Reference

Architecture documentation for the reachable() function in BuildReactiveFunction.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  1f49a9d5_b964_3a45_69a0_1b11206d9167["reachable()"]
  4f68940d_e29b_1b55_8b23_bd29e8900efa["Context"]
  1f49a9d5_b964_3a45_69a0_1b11206d9167 -->|defined in| 4f68940d_e29b_1b55_8b23_bd29e8900efa
  59c4bc0e_ec5f_af0c_d67c_d518b3f117bc["visitBlock()"]
  59c4bc0e_ec5f_af0c_d67c_d518b3f117bc -->|calls| 1f49a9d5_b964_3a45_69a0_1b11206d9167
  style 1f49a9d5_b964_3a45_69a0_1b11206d9167 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/BuildReactiveFunction.ts lines 1290–1293

  reachable(id: BlockId): boolean {
    const block = this.ir.blocks.get(id)!;
    return block.terminal.kind !== 'unreachable';
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does reachable() do?
reachable() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/BuildReactiveFunction.ts.
Where is reachable() defined?
reachable() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/BuildReactiveFunction.ts at line 1290.
What calls reachable()?
reachable() is called by 1 function(s): visitBlock.

Analyze Your Own Codebase

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

Try Supermodel Free