KernelSnapshot
●cart · /react·type
Static capabilities snapshot produced by the cart adapter and passed from
the server to the client via CartProviderProps.kernelSnapshot. Drives which
optional action groups builds into its action surface.
Properties
PROPTYPEDESCRIPTION
capabilities
C
customMutationNames
readonly string[]
type
string
Example
const snapshot: KernelSnapshot = {
type: 'shopify',
capabilities: { giftCards: true, notes: false, multipleDiscountCodes: true, cartAttributes: false, buyerIdentity: true },
customMutationNames: [],
};Related
CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions
GiftCardActions
Giftcard mutation methods added to when CartCapabilities.giftCards is true. Apply or remove a gift card by its redemption code or serverissued id.
LinePredictor
A function that optimistically projects a single cart line given a pending mutation. Called once per addline mutation by the projection engine; return a partial