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
function useCartActions(): CartActions<C>;Returns
A object whose shape reflects the active capabilities.
Throws
CartProviderError
when called outside
<CartProvider>.Related
CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions
subtotalPredictor
Build a cartlevel predictor that recomputes cost.subtotal from line unit prices times quantities. Marks costStale: true so consumers can grey out totals until t
useCartCapabilities
Read the cart capabilities surfaced by the kernel snapshot. Throws when called outside a <CartProvider to guard consumers that depend on the capability matrix t