BaseCartActions
Minimum mutation surface every cart adapter must implement: add, update, and
remove cart lines, plus clear to empty every line in one bulk mutation.
Serves as the base constraint for and can be used directly
when only the core mutations are needed.
clear resolves to a single bulk removal regardless of line count, so callers
never have to fan out one removeLine per line to empty the cart.
Properties
Example
function addItem<TExt extends CartExt>(actions: BaseCartActions<TExt>, line: NewCartLine) {
return actions.addLine(line);
}Related
CartDevtools CartFormProps CartProviderProps AppCartConfig BuyerIdentityActions CartActions CartAttributeActions CartPredictor
AppCartConfig
Compiletime pairing of a capability matrix and an extension shape used to thread consistent type parameters through and its associated hooks. Define one per app
BuyerIdentityActions
Buyeridentity sync method added to when CartCapabilities.buyerIdentity is true. Fires when the auth bridge detects a changed identity so the adapter can associa