Home / Function/ collectReactiveIdentifiers() — react Function Reference

collectReactiveIdentifiers() — react Function Reference

Architecture documentation for the collectReactiveIdentifiers() function in CollectReactiveIdentifiers.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  9da29979_02d0_1e15_8502_72e24be20690["collectReactiveIdentifiers()"]
  4021b024_bc48_5236_4c88_793e93a1cbe0["CollectReactiveIdentifiers.ts"]
  9da29979_02d0_1e15_8502_72e24be20690 -->|defined in| 4021b024_bc48_5236_4c88_793e93a1cbe0
  2a78866f_d604_f1de_bc4f_95c70833c854["pruneNonReactiveDependencies()"]
  2a78866f_d604_f1de_bc4f_95c70833c854 -->|calls| 9da29979_02d0_1e15_8502_72e24be20690
  2435b5f8_41a6_0458_ba88_4479b965455f["visitReactiveFunction()"]
  9da29979_02d0_1e15_8502_72e24be20690 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f
  style 9da29979_02d0_1e15_8502_72e24be20690 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CollectReactiveIdentifiers.ts lines 74–82

export function collectReactiveIdentifiers(
  fn: ReactiveFunction,
): Set<IdentifierId> {
  const visitor = new Visitor();
  const state = new Set<IdentifierId>();
  visitReactiveFunction(fn, visitor, state);

  return state;
}

Domain

Subdomains

Frequently Asked Questions

What does collectReactiveIdentifiers() do?
collectReactiveIdentifiers() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CollectReactiveIdentifiers.ts.
Where is collectReactiveIdentifiers() defined?
collectReactiveIdentifiers() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CollectReactiveIdentifiers.ts at line 74.
What does collectReactiveIdentifiers() call?
collectReactiveIdentifiers() calls 1 function(s): visitReactiveFunction.
What calls collectReactiveIdentifiers()?
collectReactiveIdentifiers() is called by 1 function(s): pruneNonReactiveDependencies.

Analyze Your Own Codebase

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

Try Supermodel Free