Home / Function/ mergeReactiveScopesThatInvalidateTogether() — react Function Reference

mergeReactiveScopesThatInvalidateTogether() — react Function Reference

Architecture documentation for the mergeReactiveScopesThatInvalidateTogether() function in MergeReactiveScopesThatInvalidateTogether.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  bafc9af7_3bd4_9301_506f_cee53459356f["mergeReactiveScopesThatInvalidateTogether()"]
  006711fe_6949_9be8_4726_2031284f3328["MergeReactiveScopesThatInvalidateTogether.ts"]
  bafc9af7_3bd4_9301_506f_cee53459356f -->|defined in| 006711fe_6949_9be8_4726_2031284f3328
  2435b5f8_41a6_0458_ba88_4479b965455f["visitReactiveFunction()"]
  bafc9af7_3bd4_9301_506f_cee53459356f -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f
  style bafc9af7_3bd4_9301_506f_cee53459356f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/MergeReactiveScopesThatInvalidateTogether.ts lines 86–92

export function mergeReactiveScopesThatInvalidateTogether(
  fn: ReactiveFunction,
): void {
  const lastUsageVisitor = new FindLastUsageVisitor();
  visitReactiveFunction(fn, lastUsageVisitor, undefined);
  visitReactiveFunction(fn, new Transform(lastUsageVisitor.lastUsage), null);
}

Domain

Subdomains

Frequently Asked Questions

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