useCartNoteUpdateCallback

The useCartNoteUpdateCallback hook returns a callback that can be used to update the cart's note. It must be a descendent of a CartProvider component.

Example code

Return value

A callback to update the cart's note. The callback expects one argument corresponding to the value of the note you want to update.