return-before-scope-starts.ts — react Source File
Architecture documentation for return-before-scope-starts.ts, a typescript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 7c63dab1_d735_8f04_e18a_71ce13d38acd["return-before-scope-starts.ts"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 7c63dab1_d735_8f04_e18a_71ce13d38acd --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 7c63dab1_d735_8f04_e18a_71ce13d38acd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {arrayPush} from 'shared-runtime';
function useFoo({input, cond}) {
if (cond) {
return {result: 'early return'};
}
// unconditional
const x = [];
arrayPush(x, input.a.b);
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: useFoo,
params: [{input: {a: {b: 2}}, cond: false}],
sequentialRenders: [
{input: null, cond: true},
{input: {a: {b: 2}}, cond: false},
{input: null, cond: true},
// preserve nullthrows
{input: {}, cond: false},
{input: {a: {b: null}}, cond: false},
{input: {a: null}, cond: false},
{input: {a: {b: 3}}, cond: false},
],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does return-before-scope-starts.ts do?
return-before-scope-starts.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 return-before-scope-starts.ts?
return-before-scope-starts.ts defines 1 function(s): useFoo.
What does return-before-scope-starts.ts depend on?
return-before-scope-starts.ts imports 1 module(s): shared-runtime.
Where is return-before-scope-starts.ts in the architecture?
return-before-scope-starts.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/jump-unpoisoned/return-before-scope-starts.ts (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/jump-unpoisoned).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free