Functions

Function: useOrders

react-autonomy.useOrders

useOrders(options?): UseOrders

The useOrders hook returns an object representing the current user's orders.

This hook has a side effect that will load all the user's orders upon calling it, if not already loaded. Optionally, an object can be passed to the hook to expand the orders object to include additional properties. This looks like useOrders({ includeDetails: true }). This includeDetails option only applies to the initial load of the orders.



JS


Parameters

Name

Type

options?

Object

options.includeDetails?

boolean

Returns

UseOrders

Defined in