error.hook-call-freezes-captured-identifier.tsx — react Source File
Architecture documentation for error.hook-call-freezes-captured-identifier.tsx, a tsx file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 2bcaa62c_3d59_3e28_7cd5_808992bfb343["error.hook-call-freezes-captured-identifier.tsx"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 2bcaa62c_3d59_3e28_7cd5_808992bfb343 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 2bcaa62c_3d59_3e28_7cd5_808992bfb343 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @enableTransitivelyFreezeFunctionExpressions
import {setPropertyByKey, Stringify, useIdentity} from 'shared-runtime';
function Foo({count}) {
const x = {value: 0};
/**
* After this custom hook call, it's no longer valid to mutate x.
*/
const cb = useIdentity(() => {
setPropertyByKey(x, 'value', count);
});
x.value += count;
return <Stringify x={x} cb={cb} />;
}
export const FIXTURE_ENTRYPOINT = {
fn: Foo,
params: [{count: 1}],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does error.hook-call-freezes-captured-identifier.tsx do?
error.hook-call-freezes-captured-identifier.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 error.hook-call-freezes-captured-identifier.tsx?
error.hook-call-freezes-captured-identifier.tsx defines 1 function(s): Foo.
What does error.hook-call-freezes-captured-identifier.tsx depend on?
error.hook-call-freezes-captured-identifier.tsx imports 1 module(s): shared-runtime.
Where is error.hook-call-freezes-captured-identifier.tsx in the architecture?
error.hook-call-freezes-captured-identifier.tsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.hook-call-freezes-captured-identifier.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