currentScope() — react Function Reference
Architecture documentation for the currentScope() function in PropagateScopeDependenciesHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 2f0c247d_1518_0cc0_2e7e_dbaee77d4552["currentScope()"] 1be3b542_2ecf_364c_adef_6e5675b7385e["DependencyCollectionContext"] 2f0c247d_1518_0cc0_2e7e_dbaee77d4552 -->|defined in| 1be3b542_2ecf_364c_adef_6e5675b7385e 10b5b17a_f3c2_cc80_4b16_d9daf5061245["currentScope()"] 2f0c247d_1518_0cc0_2e7e_dbaee77d4552 -->|calls| 10b5b17a_f3c2_cc80_4b16_d9daf5061245 style 2f0c247d_1518_0cc0_2e7e_dbaee77d4552 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts lines 526–528
get currentScope(): Stack<ReactiveScope> {
return this.#scopes;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does currentScope() do?
currentScope() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts.
Where is currentScope() defined?
currentScope() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts at line 526.
What does currentScope() call?
currentScope() calls 1 function(s): currentScope.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free