constructor() — react Function Reference
Architecture documentation for the constructor() function in PruneNonEscapingScopes.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 6b29824e_99fb_0514_c792_e91ed236ac73["constructor()"] 714af45f_cbe2_027b_49c5_27e47069c22c["CollectDependenciesVisitor"] 6b29824e_99fb_0514_c792_e91ed236ac73 -->|defined in| 714af45f_cbe2_027b_49c5_27e47069c22c 2397beef_7276_4515_b563_9d031be256d5["constructor()"] 2397beef_7276_4515_b563_9d031be256d5 -->|calls| 6b29824e_99fb_0514_c792_e91ed236ac73 2397beef_7276_4515_b563_9d031be256d5["constructor()"] 6b29824e_99fb_0514_c792_e91ed236ac73 -->|calls| 2397beef_7276_4515_b563_9d031be256d5 style 6b29824e_99fb_0514_c792_e91ed236ac73 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneNonEscapingScopes.ts lines 404–414
constructor(env: Environment, state: State) {
super();
this.env = env;
this.state = state;
this.options = {
memoizeJsxElements: !this.env.config.enableForest,
forceMemoizePrimitives:
this.env.config.enableForest ||
this.env.config.enablePreserveExistingMemoizationGuarantees,
};
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneNonEscapingScopes.ts.
Where is constructor() defined?
constructor() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneNonEscapingScopes.ts at line 404.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 1 function(s): constructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free