Home / Function/ propagateEarlyReturns() — react Function Reference

propagateEarlyReturns() — react Function Reference

Architecture documentation for the propagateEarlyReturns() function in PropagateEarlyReturns.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  77e881c2_656f_6fcb_16da_4a82fd28728d["propagateEarlyReturns()"]
  adcc884e_716d_15ed_4c6a_2983e4feb77c["PropagateEarlyReturns.ts"]
  77e881c2_656f_6fcb_16da_4a82fd28728d -->|defined in| adcc884e_716d_15ed_4c6a_2983e4feb77c
  2435b5f8_41a6_0458_ba88_4479b965455f["visitReactiveFunction()"]
  77e881c2_656f_6fcb_16da_4a82fd28728d -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f
  style 77e881c2_656f_6fcb_16da_4a82fd28728d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PropagateEarlyReturns.ts lines 101–106

export function propagateEarlyReturns(fn: ReactiveFunction): void {
  visitReactiveFunction(fn, new Transform(fn.env), {
    withinReactiveScope: false,
    earlyReturnValue: null,
  });
}

Domain

Subdomains

Frequently Asked Questions

What does propagateEarlyReturns() do?
propagateEarlyReturns() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PropagateEarlyReturns.ts.
Where is propagateEarlyReturns() defined?
propagateEarlyReturns() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PropagateEarlyReturns.ts at line 101.
What does propagateEarlyReturns() call?
propagateEarlyReturns() calls 1 function(s): visitReactiveFunction.

Analyze Your Own Codebase

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

Try Supermodel Free