The standard action now updates cart attributes, and a new shopify:cart:attributes-update event fires whenever an attributes update is initiated.
Before this, changing an attribute meant calling the Storefront API yourself, and nothing told your app when one changed. The action now handles attributes like any other cart update, and the event fires whether your app, the theme, or another app made the change. It carries the full new set of attributes and a promise for the result, so you can update your UI right away and roll it back if the cart declines the change.
Learn more in the event reference and the updated reference.
Was this page helpful?