Home / Function/ pruneHoistedContexts() — react Function Reference

pruneHoistedContexts() — react Function Reference

Architecture documentation for the pruneHoistedContexts() function in PruneHoistedContexts.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  97e910a0_9c49_d22f_b72a_bf081b9fd491["pruneHoistedContexts()"]
  3b44eada_4dab_f6ef_3a59_8679cbd297bb["PruneHoistedContexts.ts"]
  97e910a0_9c49_d22f_b72a_bf081b9fd491 -->|defined in| 3b44eada_4dab_f6ef_3a59_8679cbd297bb
  2435b5f8_41a6_0458_ba88_4479b965455f["visitReactiveFunction()"]
  97e910a0_9c49_d22f_b72a_bf081b9fd491 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f
  462d4884_0290_ceb1_b76b_bfb25c49a3cc["empty()"]
  97e910a0_9c49_d22f_b72a_bf081b9fd491 -->|calls| 462d4884_0290_ceb1_b76b_bfb25c49a3cc
  style 97e910a0_9c49_d22f_b72a_bf081b9fd491 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneHoistedContexts.ts lines 43–48

export function pruneHoistedContexts(fn: ReactiveFunction): void {
  visitReactiveFunction(fn, new Visitor(), {
    activeScopes: empty(),
    uninitialized: new Map(),
  });
}

Domain

Subdomains

Frequently Asked Questions

What does pruneHoistedContexts() do?
pruneHoistedContexts() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneHoistedContexts.ts.
Where is pruneHoistedContexts() defined?
pruneHoistedContexts() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneHoistedContexts.ts at line 43.
What does pruneHoistedContexts() call?
pruneHoistedContexts() calls 2 function(s): empty, visitReactiveFunction.

Analyze Your Own Codebase

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

Try Supermodel Free