error.invalid-mutate-after-aliased-freeze.js — react Source File
Architecture documentation for error.invalid-mutate-after-aliased-freeze.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
function Component(props) {
let x = [];
let y = x;
if (props.p1) {
x = [];
}
let _ = <Component x={x} />;
// y is MaybeFrozen at this point, since it may alias to x
// (which is the above line freezes)
y.push(props.p2);
return <Component x={x} y={y} />;
}
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does error.invalid-mutate-after-aliased-freeze.js do?
error.invalid-mutate-after-aliased-freeze.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 error.invalid-mutate-after-aliased-freeze.js?
error.invalid-mutate-after-aliased-freeze.js defines 1 function(s): Component.
Where is error.invalid-mutate-after-aliased-freeze.js in the architecture?
error.invalid-mutate-after-aliased-freeze.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.invalid-mutate-after-aliased-freeze.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free