mutate-after-useeffect-optional-chain.js — react Source File
Architecture documentation for mutate-after-useeffect-optional-chain.js, a javascript file in the react codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR a57f3dfd_8be3_f70d_c1bc_7a7c6d5e6bfc["mutate-after-useeffect-optional-chain.js"] ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] a57f3dfd_8be3_f70d_c1bc_7a7c6d5e6bfc --> ac587885_e294_a1e9_b13f_5e7b920fdb42 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] a57f3dfd_8be3_f70d_c1bc_7a7c6d5e6bfc --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style a57f3dfd_8be3_f70d_c1bc_7a7c6d5e6bfc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @inferEffectDependencies @panicThreshold:"none" @loggerTestOnly @enableNewMutationAliasingModel
import {useEffect, AUTODEPS} from 'react';
import {print} from 'shared-runtime';
function Component({foo}) {
const arr = [];
// Taking either arr[0].value or arr as a dependency is reasonable
// as long as developers know what to expect.
useEffect(() => print(arr[0]?.value), AUTODEPS);
arr.push({value: foo});
return arr;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{foo: 1}],
};
Domain
Subdomains
Functions
Dependencies
- react
- shared-runtime
Source
Frequently Asked Questions
What does mutate-after-useeffect-optional-chain.js do?
mutate-after-useeffect-optional-chain.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in mutate-after-useeffect-optional-chain.js?
mutate-after-useeffect-optional-chain.js defines 1 function(s): Component.
What does mutate-after-useeffect-optional-chain.js depend on?
mutate-after-useeffect-optional-chain.js imports 2 module(s): react, shared-runtime.
Where is mutate-after-useeffect-optional-chain.js in the architecture?
mutate-after-useeffect-optional-chain.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/new-mutability/mutate-after-useeffect-optional-chain.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/new-mutability).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free