conditionallyMutateIterator() — react Function Reference
Architecture documentation for the conditionallyMutateIterator() function in InferMutationAliasingEffects.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD e29ee9ee_fc58_c34d_6913_1e7baa76e702["conditionallyMutateIterator()"] d24875c3_c045_4414_2cc9_16f96d59c629["InferMutationAliasingEffects.ts"] e29ee9ee_fc58_c34d_6913_1e7baa76e702 -->|defined in| d24875c3_c045_4414_2cc9_16f96d59c629 7cb90dd3_dbe0_0087_670d_277ddeadabfc["applyEffect()"] 7cb90dd3_dbe0_0087_670d_277ddeadabfc -->|calls| e29ee9ee_fc58_c34d_6913_1e7baa76e702 a00426de_5aa3_d680_a1fe_29201ff58984["computeSignatureForInstruction()"] a00426de_5aa3_d680_a1fe_29201ff58984 -->|calls| e29ee9ee_fc58_c34d_6913_1e7baa76e702 fc22e84f_49a6_8d04_faba_43cbf926c0aa["computeEffectsForLegacySignature()"] fc22e84f_49a6_8d04_faba_43cbf926c0aa -->|calls| e29ee9ee_fc58_c34d_6913_1e7baa76e702 f5d001aa_7d8a_3660_1e73_93f3fa2883da["computeEffectsForSignature()"] f5d001aa_7d8a_3660_1e73_93f3fa2883da -->|calls| e29ee9ee_fc58_c34d_6913_1e7baa76e702 style e29ee9ee_fc58_c34d_6913_1e7baa76e702 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts lines 1697–1711
function conditionallyMutateIterator(place: Place): AliasingEffect | null {
if (
!(
isArrayType(place.identifier) ||
isSetType(place.identifier) ||
isMapType(place.identifier)
)
) {
return {
kind: 'MutateTransitiveConditionally',
value: place,
};
}
return null;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does conditionallyMutateIterator() do?
conditionallyMutateIterator() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts.
Where is conditionallyMutateIterator() defined?
conditionallyMutateIterator() is defined in compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts at line 1697.
What calls conditionallyMutateIterator()?
conditionallyMutateIterator() is called by 4 function(s): applyEffect, computeEffectsForLegacySignature, computeEffectsForSignature, computeSignatureForInstruction.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free