useCartActions

cart · /react·functionthrows CartProviderError

Read the capability-typed actions object built by the provider. Throws when used outside <CartProvider> because callers expect a guaranteed addLine/updateLine/removeLine surface.

Signature

@nordcom/commerce-cart

Returns

A object whose shape reflects the active capabilities.

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