getHookKind() — react Function Reference
Architecture documentation for the getHookKind() function in HIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 9cbd2355_05cd_5bbd_253f_7aeb4f947484["getHookKind()"] 18a78965_f593_105b_e5e8_07001321c2ec["HIR.ts"] 9cbd2355_05cd_5bbd_253f_7aeb4f947484 -->|defined in| 18a78965_f593_105b_e5e8_07001321c2ec 30edbd1d_6244_d8ca_6be9_9380bed866cf["getAssumedInvokedFunctions()"] 30edbd1d_6244_d8ca_6be9_9380bed866cf -->|calls| 9cbd2355_05cd_5bbd_253f_7aeb4f947484 8838ac7e_69f8_3c78_b8c7_7b272e305ef9["evaluatesToStableTypeOrContainer()"] 8838ac7e_69f8_3c78_b8c7_7b272e305ef9 -->|calls| 9cbd2355_05cd_5bbd_253f_7aeb4f947484 d8edf87e_ea78_c9d0_b5c9_13d68891efec["codegenInstructionValue()"] d8edf87e_ea78_c9d0_b5c9_13d68891efec -->|calls| 9cbd2355_05cd_5bbd_253f_7aeb4f947484 97a5722d_5f85_030f_127a_0ee70f10e274["visitValueForMemoization()"] 97a5722d_5f85_030f_127a_0ee70f10e274 -->|calls| 9cbd2355_05cd_5bbd_253f_7aeb4f947484 6eadf343_46d9_d614_1b21_1060f09386fc["validateHooksUsage()"] 6eadf343_46d9_d614_1b21_1060f09386fc -->|calls| 9cbd2355_05cd_5bbd_253f_7aeb4f947484 450e9fa3_e9b3_e461_c1b5_503df5ad4c02["visitFunctionExpression()"] 450e9fa3_e9b3_e461_c1b5_503df5ad4c02 -->|calls| 9cbd2355_05cd_5bbd_253f_7aeb4f947484 67f87937_36ed_a7a2_a22b_50ebabdcd7ed["getHookKindForType()"] 9cbd2355_05cd_5bbd_253f_7aeb4f947484 -->|calls| 67f87937_36ed_a7a2_a22b_50ebabdcd7ed style 9cbd2355_05cd_5bbd_253f_7aeb4f947484 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts lines 1978–1980
export function getHookKind(env: Environment, id: Identifier): HookKind | null {
return getHookKindForType(env, id.type);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does getHookKind() do?
getHookKind() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts.
Where is getHookKind() defined?
getHookKind() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts at line 1978.
What does getHookKind() call?
getHookKind() calls 1 function(s): getHookKindForType.
What calls getHookKind()?
getHookKind() is called by 6 function(s): codegenInstructionValue, evaluatesToStableTypeOrContainer, getAssumedInvokedFunctions, validateHooksUsage, visitFunctionExpression, visitValueForMemoization.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free