Type Alias: QueryLike<TRoot, TProcedure>
QueryLike<
TRoot
,TProcedure
>:object
Use to request a query route which matches a given query procedure's interface
Type Parameters
Type Parameter |
---|
TRoot extends AnyRootTypes |
TProcedure extends AnyProcedure |
Type declaration
useQuery()
useQuery: (
variables
,opts
?) =>InferQueryResult
<TRoot
,TProcedure
>
Parameters
Parameter | Type |
---|---|
variables | inferProcedureInput <TProcedure > |
opts ? | InferQueryOptions <TRoot , TProcedure , any > |
Returns
InferQueryResult
<TRoot
, TProcedure
>
useSuspenseQuery()
useSuspenseQuery: (
variables
,opts
?) =>UseTRPCSuspenseQueryResult
<inferProcedureOutput
<TProcedure
>,TRPCClientErrorLike
<TRoot
>>
Parameters
Parameter | Type |
---|---|
variables | inferProcedureInput <TProcedure > |
opts ? | InferQueryOptions <TRoot , TProcedure , any > |
Returns
UseTRPCSuspenseQueryResult
<inferProcedureOutput
<TProcedure
>, TRPCClientErrorLike
<TRoot
>>
Defined in
packages/react-query/src/shared/polymorphism/queryLike.ts:19