Home / Function/ withUseEffectLambdaScope() — react Function Reference

withUseEffectLambdaScope() — react Function Reference

Architecture documentation for the withUseEffectLambdaScope() function in TransformFire.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  83c88e3e_bf8b_2746_f1b3_d72ab4fca53c["withUseEffectLambdaScope()"]
  1cc5203c_bda6_d474_ce02_0de0532830f0["Context"]
  83c88e3e_bf8b_2746_f1b3_d72ab4fca53c -->|defined in| 1cc5203c_bda6_d474_ce02_0de0532830f0
  82b132d3_0738_0762_bb98_68350fff1f76["withFunctionScope()"]
  83c88e3e_bf8b_2746_f1b3_d72ab4fca53c -->|calls| 82b132d3_0738_0762_bb98_68350fff1f76
  style 83c88e3e_bf8b_2746_f1b3_d72ab4fca53c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts lines 600–613

  withUseEffectLambdaScope(fn: () => void): FireCalleesToFireFunctionBinding {
    const capturedCalleeIdentifierIds = this.#capturedCalleeIdentifierIds;
    const inUseEffectLambda = this.#inUseEffectLambda;

    this.#capturedCalleeIdentifierIds = new Map();
    this.#inUseEffectLambda = true;

    const resultCapturedCalleeIdentifierIds = this.withFunctionScope(fn);

    this.#capturedCalleeIdentifierIds = capturedCalleeIdentifierIds;
    this.#inUseEffectLambda = inUseEffectLambda;

    return resultCapturedCalleeIdentifierIds;
  }

Domain

Subdomains

Frequently Asked Questions

What does withUseEffectLambdaScope() do?
withUseEffectLambdaScope() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts.
Where is withUseEffectLambdaScope() defined?
withUseEffectLambdaScope() is defined in compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts at line 600.
What does withUseEffectLambdaScope() call?
withUseEffectLambdaScope() calls 1 function(s): withFunctionScope.

Analyze Your Own Codebase

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

Try Supermodel Free