align-scopes-reactive-scope-overlaps-if.ts — react Source File
Architecture documentation for align-scopes-reactive-scope-overlaps-if.ts, a typescript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
function useFoo({cond}) {
let items: any = {};
b0: {
if (cond) {
// Mutable range of `items` begins here, but its reactive scope block
// should be aligned to above the if-branch
items = [];
} else {
break b0;
}
items.push(2);
}
return items;
}
export const FIXTURE_ENTRYPOINT = {
fn: useFoo,
params: [{cond: true}],
sequentialRenders: [
{cond: true},
{cond: true},
{cond: false},
{cond: false},
{cond: true},
],
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does align-scopes-reactive-scope-overlaps-if.ts do?
align-scopes-reactive-scope-overlaps-if.ts is a source file in the react codebase, written in typescript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in align-scopes-reactive-scope-overlaps-if.ts?
align-scopes-reactive-scope-overlaps-if.ts defines 1 function(s): useFoo.
Where is align-scopes-reactive-scope-overlaps-if.ts in the architecture?
align-scopes-reactive-scope-overlaps-if.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/align-scopes-reactive-scope-overlaps-if.ts (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