useCartPending
●cart · /react·function
Read pending mutations from the provider — either the whole queue or the single entry currently targeting a specific line id.
Signature
function useCartPending(lineId: string): PendingMutation | PendingMutation[];Parameters
| Name | Type | Description |
|---|---|---|
lineId | string |
Returns
The full queue when no line id is provided, the matching pending
mutation when one is found, or null for an unmatched line id.
Related
CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions