reduce-if-exhaustive-nonpoisoned-deps1.ts — react Source File
Architecture documentation for reduce-if-exhaustive-nonpoisoned-deps1.ts, a typescript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 6f8fb3c8_99ab_2107_741f_d6cb1030790c["reduce-if-exhaustive-nonpoisoned-deps1.ts"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 6f8fb3c8_99ab_2107_741f_d6cb1030790c --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 6f8fb3c8_99ab_2107_741f_d6cb1030790c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {identity} from 'shared-runtime';
function useFoo({input, cond2, cond1}) {
const x = [];
if (cond1) {
if (!cond2) {
x.push(identity(input.a.b));
return null;
} else {
x.push(identity(input.a.b));
}
} else {
x.push(identity(input.a.b));
}
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: useFoo,
params: [{input: {b: 1}, cond1: true, cond2: false}],
sequentialRenders: [
{input: {a: {b: 1}}, cond1: true, cond2: true},
{input: null, cond1: true, cond2: false},
// preserve nullthrows
{input: {a: {b: undefined}}, cond1: true, cond2: true},
{input: {a: null}, cond1: true, cond2: true},
{input: {a: {b: undefined}}, cond1: true, cond2: true},
],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does reduce-if-exhaustive-nonpoisoned-deps1.ts do?
reduce-if-exhaustive-nonpoisoned-deps1.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 reduce-if-exhaustive-nonpoisoned-deps1.ts?
reduce-if-exhaustive-nonpoisoned-deps1.ts defines 1 function(s): useFoo.
What does reduce-if-exhaustive-nonpoisoned-deps1.ts depend on?
reduce-if-exhaustive-nonpoisoned-deps1.ts imports 1 module(s): shared-runtime.
Where is reduce-if-exhaustive-nonpoisoned-deps1.ts in the architecture?
reduce-if-exhaustive-nonpoisoned-deps1.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/jump-unpoisoned/reduce-if-exhaustive-nonpoisoned-deps1.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