isBuiltInHookThatReturnsTuple() — react Function Reference
Architecture documentation for the isBuiltInHookThatReturnsTuple() function in astUtils.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 4fc49527_bab5_ef0d_7ef1_b39e407cd165["isBuiltInHookThatReturnsTuple()"] 22acaf1d_d624_cc04_9046_5e8603f3a58d["astUtils.js"] 4fc49527_bab5_ef0d_7ef1_b39e407cd165 -->|defined in| 22acaf1d_d624_cc04_9046_5e8603f3a58d f6deeb57_f62f_467f_fc8e_73ff4e2df353["nodeContainsHookVariableName()"] f6deeb57_f62f_467f_fc8e_73ff4e2df353 -->|calls| 4fc49527_bab5_ef0d_7ef1_b39e407cd165 7d9d3c92_735e_25fb_1dab_b63e2887eeef["isReactFunction()"] 4fc49527_bab5_ef0d_7ef1_b39e407cd165 -->|calls| 7d9d3c92_735e_25fb_1dab_b63e2887eeef style 4fc49527_bab5_ef0d_7ef1_b39e407cd165 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/hooks/astUtils.js lines 598–605
function isBuiltInHookThatReturnsTuple(path: NodePath): boolean {
const callee = path.node.init.callee;
return (
isReactFunction(callee, 'useState') ||
isReactFunction(callee, 'useReducer') ||
isReactFunction(callee, 'useTransition')
);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does isBuiltInHookThatReturnsTuple() do?
isBuiltInHookThatReturnsTuple() is a function in the react codebase, defined in packages/react-devtools-shared/src/hooks/astUtils.js.
Where is isBuiltInHookThatReturnsTuple() defined?
isBuiltInHookThatReturnsTuple() is defined in packages/react-devtools-shared/src/hooks/astUtils.js at line 598.
What does isBuiltInHookThatReturnsTuple() call?
isBuiltInHookThatReturnsTuple() calls 1 function(s): isReactFunction.
What calls isBuiltInHookThatReturnsTuple()?
isBuiltInHookThatReturnsTuple() is called by 1 function(s): nodeContainsHookVariableName.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free