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

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: [],
};

CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions

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

On this page