type-provider-store-capture.tsx — react Source File
Architecture documentation for type-provider-store-capture.tsx, a tsx file in the react codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR bc6dcbb6_9017_4592_e174_b1b00b11d750["type-provider-store-capture.tsx"] ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] bc6dcbb6_9017_4592_e174_b1b00b11d750 --> ac587885_e294_a1e9_b13f_5e7b920fdb42 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] bc6dcbb6_9017_4592_e174_b1b00b11d750 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style bc6dcbb6_9017_4592_e174_b1b00b11d750 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {useMemo} from 'react';
import {typedArrayPush, ValidateMemoization} from 'shared-runtime';
export function Component({a, b}) {
const item1 = useMemo(() => ({a}), [a]);
const item2 = useMemo(() => ({b}), [b]);
const items = useMemo(() => {
const items = [];
typedArrayPush(items, item1);
typedArrayPush(items, item2);
return items;
}, [item1, item2]);
return (
<>
<ValidateMemoization inputs={[a]} output={items[0]} />
<ValidateMemoization inputs={[b]} output={items[1]} />
<ValidateMemoization inputs={[a, b]} output={items} />
</>
);
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{a: 0, b: 0}],
sequentialRenders: [
{a: 0, b: 0},
{a: 1, b: 0},
{a: 1, b: 1},
{a: 1, b: 2},
{a: 2, b: 2},
{a: 3, b: 2},
{a: 0, b: 0},
],
};
Domain
Subdomains
Functions
Dependencies
- react
- shared-runtime
Source
Frequently Asked Questions
What does type-provider-store-capture.tsx do?
type-provider-store-capture.tsx is a source file in the react codebase, written in tsx. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in type-provider-store-capture.tsx?
type-provider-store-capture.tsx defines 1 function(s): Component.
What does type-provider-store-capture.tsx depend on?
type-provider-store-capture.tsx imports 2 module(s): react, shared-runtime.
Where is type-provider-store-capture.tsx in the architecture?
type-provider-store-capture.tsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/type-provider-store-capture.tsx (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