cfg-nested-ifelse-missing.js — react Source File
Architecture documentation for cfg-nested-ifelse-missing.js, a javascript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 9cfe8969_e72b_5307_da8e_ed44a55b3ddc["cfg-nested-ifelse-missing.js"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 9cfe8969_e72b_5307_da8e_ed44a55b3ddc --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 9cfe8969_e72b_5307_da8e_ed44a55b3ddc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// props.a.b should NOT be added as a unconditional dependency to the reactive
// scope that produces x if it is not accessed in every path
import {identity, getNull} from 'shared-runtime';
function useCondDepInNestedIfElse(props, cond) {
const x = {};
if (identity(cond)) {
if (getNull()) {
x.a = props.a.b;
}
} else {
x.d = props.a.b;
}
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: useCondDepInNestedIfElse,
params: [{a: {b: 2}}, true],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does cfg-nested-ifelse-missing.js do?
cfg-nested-ifelse-missing.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 cfg-nested-ifelse-missing.js?
cfg-nested-ifelse-missing.js defines 1 function(s): useCondDepInNestedIfElse.
What does cfg-nested-ifelse-missing.js depend on?
cfg-nested-ifelse-missing.js imports 1 module(s): shared-runtime.
Where is cfg-nested-ifelse-missing.js in the architecture?
cfg-nested-ifelse-missing.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/cfg-nested-ifelse-missing.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free