CartAttributeActions
●cart · /react·type
Cart-attribute mutation method added to when
CartCapabilities.cartAttributes is true. Replaces all cart attributes
atomically with the supplied key-value pairs.
Properties
PROPTYPEDESCRIPTION
updateAttributes
unknown
Example
const actions = useCartActions<{ cartAttributes: true } & CartCapabilities>();
await actions.updateAttributes([{ key: 'source', value: 'homepage' }]);Related
CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartPredictor
CartActions
Full action surface for a cart, assembled from and capabilitygated mixin types. Pass the same C as the kernel snapshot's capabilities to receive a correctly nar
CartDevtools
Developmentonly overlay that renders a toggleable JSON dump of cart provider state. Returns null in production builds so bundlers can treeshake the panel comple