UseQueryWithSelect
Defined in: react/src/types.ts:152
useQuery hook with chained select support.
- Without select: returns TSelected (from config.select)
- With select: chains on top and returns TFinal
Accepts all useQuery options from React Query documentation. Select is special: it chains on top of config.select.
Type Parameters
Section titled “Type Parameters”TQueryFnData
Section titled “TQueryFnData”TQueryFnData
TSelected
Section titled “TSelected”TSelected = TQueryFnData
TError
Section titled “TError”TError = Error
Call Signature
Section titled “Call Signature”UseQueryWithSelect(
options?):UseQueryResult<TSelected,TError>
Defined in: react/src/types.ts:159
useQuery hook with chained select support.
- Without select: returns TSelected (from config.select)
- With select: chains on top and returns TFinal
Accepts all useQuery options from React Query documentation. Select is special: it chains on top of config.select.
Parameters
Section titled “Parameters”options?
Section titled “options?”Omit<UseQueryOptions<TQueryFnData, TError, TSelected, readonly unknown[]>, "queryKey" | "queryFn"> & object
Returns
Section titled “Returns”UseQueryResult<TSelected, TError>
Call Signature
Section titled “Call Signature”UseQueryWithSelect<
TFinal>(options):UseQueryResult<TFinal,TError>
Defined in: react/src/types.ts:169
useQuery hook with chained select support.
- Without select: returns TSelected (from config.select)
- With select: chains on top and returns TFinal
Accepts all useQuery options from React Query documentation. Select is special: it chains on top of config.select.
Type Parameters
Section titled “Type Parameters”TFinal
Section titled “TFinal”TFinal = TSelected
Parameters
Section titled “Parameters”options
Section titled “options”Omit<UseQueryOptions<TQueryFnData, TError, TFinal, readonly unknown[]>, "queryKey" | "queryFn" | "select"> & object
Returns
Section titled “Returns”UseQueryResult<TFinal, TError>