Home / Function/ pruneAllReactiveScopes() — react Function Reference

pruneAllReactiveScopes() — react Function Reference

Architecture documentation for the pruneAllReactiveScopes() function in PruneAllReactiveScopes.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  db2ea8f4_caf7_b1dc_4447_097f25808623["pruneAllReactiveScopes()"]
  745af7cc_abf6_a69f_776c_e9dacf9bcfc0["PruneAllReactiveScopes.ts"]
  db2ea8f4_caf7_b1dc_4447_097f25808623 -->|defined in| 745af7cc_abf6_a69f_776c_e9dacf9bcfc0
  2435b5f8_41a6_0458_ba88_4479b965455f["visitReactiveFunction()"]
  db2ea8f4_caf7_b1dc_4447_097f25808623 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f
  style db2ea8f4_caf7_b1dc_4447_097f25808623 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneAllReactiveScopes.ts lines 24–26

export function pruneAllReactiveScopes(fn: ReactiveFunction): void {
  visitReactiveFunction(fn, new Transform(), undefined);
}

Domain

Subdomains

Frequently Asked Questions

What does pruneAllReactiveScopes() do?
pruneAllReactiveScopes() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneAllReactiveScopes.ts.
Where is pruneAllReactiveScopes() defined?
pruneAllReactiveScopes() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneAllReactiveScopes.ts at line 24.
What does pruneAllReactiveScopes() call?
pruneAllReactiveScopes() 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