areEqualDependencies() — react Function Reference
Architecture documentation for the areEqualDependencies() function in MergeReactiveScopesThatInvalidateTogether.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 7bed2ca3_d37d_8807_1d7c_c0ae2d6dbc64["areEqualDependencies()"] 006711fe_6949_9be8_4726_2031284f3328["MergeReactiveScopesThatInvalidateTogether.ts"] 7bed2ca3_d37d_8807_1d7c_c0ae2d6dbc64 -->|defined in| 006711fe_6949_9be8_4726_2031284f3328 b2563d99_6456_0163_2dd9_9a9290ad87a8["transformScope()"] b2563d99_6456_0163_2dd9_9a9290ad87a8 -->|calls| 7bed2ca3_d37d_8807_1d7c_c0ae2d6dbc64 f767b6e4_1078_08b0_bc4b_f27f690658e6["canMergeScopes()"] f767b6e4_1078_08b0_bc4b_f27f690658e6 -->|calls| 7bed2ca3_d37d_8807_1d7c_c0ae2d6dbc64 style 7bed2ca3_d37d_8807_1d7c_c0ae2d6dbc64 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/MergeReactiveScopesThatInvalidateTogether.ts lines 524–547
function areEqualDependencies(
a: Set<ReactiveScopeDependency>,
b: Set<ReactiveScopeDependency>,
): boolean {
if (a.size !== b.size) {
return false;
}
for (const aValue of a) {
let found = false;
for (const bValue of b) {
if (
aValue.identifier.declarationId === bValue.identifier.declarationId &&
areEqualPaths(aValue.path, bValue.path)
) {
found = true;
break;
}
}
if (!found) {
return false;
}
}
return true;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does areEqualDependencies() do?
areEqualDependencies() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/MergeReactiveScopesThatInvalidateTogether.ts.
Where is areEqualDependencies() defined?
areEqualDependencies() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/MergeReactiveScopesThatInvalidateTogether.ts at line 524.
What calls areEqualDependencies()?
areEqualDependencies() is called by 2 function(s): canMergeScopes, transformScope.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free