break-in-scope.ts — react Source File
Architecture documentation for break-in-scope.ts, a typescript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
function useFoo({obj, objIsNull}) {
const x = [];
b0: {
if (objIsNull) {
break b0;
}
x.push(obj.a);
}
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: useFoo,
params: [{obj: null, objIsNull: true}],
sequentialRenders: [
{obj: null, objIsNull: true},
{obj: {a: 2}, objIsNull: false},
// check we preserve nullthrows
{obj: {a: undefined}, objIsNull: false},
{obj: undefined, objIsNull: false},
{obj: {a: undefined}, objIsNull: false},
],
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does break-in-scope.ts do?
break-in-scope.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 break-in-scope.ts?
break-in-scope.ts defines 1 function(s): useFoo.
Where is break-in-scope.ts in the architecture?
break-in-scope.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/jump-poisoned/break-in-scope.ts (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/jump-poisoned).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free