useCartCapabilities

cart · /react·functionthrows CartProviderError

Read the cart capabilities surfaced by the kernel snapshot. Throws when called outside a <CartProvider> to guard consumers that depend on the capability matrix to drive conditional UI.

Signature

@nordcom/commerce-cart

Returns

The capabilities object reported by the active adapter.

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