Skip to content

Type Alias: CartSnapshot

CartSnapshot = object

The render-safe state emitted by the cart session. Capability secrets are never included.

Properties

cart

cart: Cart | null

Last loaded authoritative cart, or null before restore.


hasCart

hasCart: boolean

Whether a persisted cart capability currently exists.


isBusy

isBusy: boolean

True while a cart restore or mutation is in flight.


lastError

lastError: PublicError | null

Last cart error safe to render in UI.

MIT Licensed