hoisted-context-variable-in-outlined-fn.js — react Source File
Architecture documentation for hoisted-context-variable-in-outlined-fn.js, a javascript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 32af493c_759d_d188_5397_8c9890346627["hoisted-context-variable-in-outlined-fn.js"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 32af493c_759d_d188_5397_8c9890346627 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 32af493c_759d_d188_5397_8c9890346627 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {CONST_TRUE, useIdentity} from 'shared-runtime';
const hidden = CONST_TRUE;
function useFoo() {
const makeCb = useIdentity(() => {
const logIntervalId = () => {
log(intervalId);
};
let intervalId;
if (!hidden) {
intervalId = 2;
}
return () => {
logIntervalId();
};
});
return <Stringify fn={makeCb()} shouldInvokeFns={true} />;
}
export const FIXTURE_ENTRYPOINT = {
fn: useFoo,
params: [],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does hoisted-context-variable-in-outlined-fn.js do?
hoisted-context-variable-in-outlined-fn.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 hoisted-context-variable-in-outlined-fn.js?
hoisted-context-variable-in-outlined-fn.js defines 1 function(s): useFoo.
What does hoisted-context-variable-in-outlined-fn.js depend on?
hoisted-context-variable-in-outlined-fn.js imports 1 module(s): shared-runtime.
Where is hoisted-context-variable-in-outlined-fn.js in the architecture?
hoisted-context-variable-in-outlined-fn.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/hoisted-context-variable-in-outlined-fn.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