NoteActions

cart · /react·type

Cart-note mutation method added to when CartCapabilities.notes is true. Replaces the entire cart note with a new string; pass an empty string to clear.

Properties

updateNote
unknown

Example

const actions = useCartActions<{ notes: true } & CartCapabilities>();
await actions.updateNote('Please gift wrap this order.');

CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions

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

On this page