cfg-switch-missing-default.js — react Source File
Architecture documentation for cfg-switch-missing-default.js, a javascript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 79cacd5a_f079_77a1_a56e_ca0152225917["cfg-switch-missing-default.js"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 79cacd5a_f079_77a1_a56e_ca0152225917 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 79cacd5a_f079_77a1_a56e_ca0152225917 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 the default case.
import {identity} from 'shared-runtime';
function useCondDepInSwitchMissingDefault(props, other) {
const x = {};
switch (identity(other)) {
case 1:
x.a = props.a.b;
break;
case 2:
x.b = props.a.b;
break;
}
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: useCondDepInSwitchMissingDefault,
params: [{a: {b: 2}}, 3],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does cfg-switch-missing-default.js do?
cfg-switch-missing-default.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-switch-missing-default.js?
cfg-switch-missing-default.js defines 1 function(s): useCondDepInSwitchMissingDefault.
What does cfg-switch-missing-default.js depend on?
cfg-switch-missing-default.js imports 1 module(s): shared-runtime.
Where is cfg-switch-missing-default.js in the architecture?
cfg-switch-missing-default.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/cfg-switch-missing-default.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