useCartDispatch

cart · /react·functionthrows CartProviderError

Read the low-level dispatch function that bypasses the capability-typed action surface — useful for custom mutations carried via CartMutation.

Signature

@nordcom/commerce-cart
function useCartDispatch(): (m: CartMutation) => Promise<CartActionResult>;

Returns

A function that accepts a and resolves to a .

Throws

CartProviderError
when called outside <CartProvider>.

CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions

Metadata@nordcom/commerce-cart@0.2.2Open in GitHub ↗

On this page