Home / Function/ withFunctionScope() — react Function Reference

withFunctionScope() — react Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts lines 595–598

  withFunctionScope(fn: () => void): FireCalleesToFireFunctionBinding {
    fn();
    return this.#capturedCalleeIdentifierIds;
  }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free