useConditionalSuperpath1() — react Function Reference
Architecture documentation for the useConditionalSuperpath1() function in superpath-order1.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD e68c9e13_ca11_2944_4d12_665a4f5cf57f["useConditionalSuperpath1()"] 2e48a1dd_3a63_cb0e_918e_77e0d15b33f1["superpath-order1.js"] e68c9e13_ca11_2944_4d12_665a4f5cf57f -->|defined in| 2e48a1dd_3a63_cb0e_918e_77e0d15b33f1 style e68c9e13_ca11_2944_4d12_665a4f5cf57f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/superpath-order1.js lines 8–15
function useConditionalSuperpath1({props, cond}) {
const x = {};
x.a = props.a;
if (identity(cond)) {
x.b = props.a.b;
}
return x;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does useConditionalSuperpath1() do?
useConditionalSuperpath1() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/superpath-order1.js.
Where is useConditionalSuperpath1() defined?
useConditionalSuperpath1() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/superpath-order1.js at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free