Function: useOrder()
useOrder(
params
: {orderId
:string
;query
:{}
; }):UseQueryResult
<Order
,Error
>
Parameters
Parameter | Type | Description |
---|---|---|
params | object | |
params.orderId | string | The id of the order. |
params.query ? | QueryOptions <Order > | See Tanstack Query - useQuery options. |
Returns
UseQueryResult
<Order
, Error
>
Example
const {
data,
isLoading,
isError,
error,
refetch,
...moreUseQueryResults
} = useOrder();