MutationEnvelope
●cart · /core·type
Wraps a with an idempotency key for transport across the server-action boundary. Used by implementations to carry the key alongside the mutation payload.
Properties
PROPTYPEDESCRIPTION
idempotencyKey
string
mutation
Example
const envelope: MutationEnvelope = {
mutation: { kind: 'add-line', variantId: 'v_1', quantity: 1 },
idempotencyKey: crypto.randomUUID(),
};
await submitMutation(envelope);Related
RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter
MetadataOpen in GitHub ↗