mutate-through-identity.js — react Source File
Architecture documentation for mutate-through-identity.js, a javascript file in the react codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR fc00d83f_0354_3e00_155b_cebb1eef7c91["mutate-through-identity.js"] ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] fc00d83f_0354_3e00_155b_cebb1eef7c91 --> ac587885_e294_a1e9_b13f_5e7b920fdb42 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] fc00d83f_0354_3e00_155b_cebb1eef7c91 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style fc00d83f_0354_3e00_155b_cebb1eef7c91 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @enablePreserveExistingMemoizationGuarantees:false @validateExhaustiveMemoizationDependencies:false
import {useMemo} from 'react';
import {identity, ValidateMemoization} from 'shared-runtime';
function Component({a, b}) {
const x = useMemo(() => ({a}), [a, b]);
const x2 = identity(x);
x2.b = b;
return <ValidateMemoization inputs={[a, b]} output={x} />;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{a: 0, b: 0}],
sequentialRenders: [
{a: 0, b: 0},
{a: 0, b: 1},
{a: 1, b: 1},
{a: 0, b: 0},
],
};
Domain
Subdomains
Functions
Dependencies
- react
- shared-runtime
Source
Frequently Asked Questions
What does mutate-through-identity.js do?
mutate-through-identity.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-through-identity.js?
mutate-through-identity.js defines 1 function(s): Component.
What does mutate-through-identity.js depend on?
mutate-through-identity.js imports 2 module(s): react, shared-runtime.
Where is mutate-through-identity.js in the architecture?
mutate-through-identity.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/new-mutability/mutate-through-identity.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