Skip to main content

Function: useOrder()

useOrder(params: {orderId: string;query: {}; }): UseQueryResult<Order, Error>

Parameters

ParameterTypeDescription
paramsobject
params.orderIdstringThe 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();

See

API Documentation

Defined in

sdk-react-provider/src/lib/hooks.tsx:547