Skip to content

CartSnapshot

announcement: { n: number; } | null

Changes (n goes up) each time something was added, for a polite live region to speak once.


cart: Cart | null

The server’s cart, as of the last answer. Never carries the cart token.


count: number

Units in the cart. Moves optimistically with an add and is put back if the server refuses.


drawerOpen: boolean


fault: CartFault | null


hasHeader: boolean

A header cart button is mounted and speaks additions itself.


paying: boolean

A checkout has started and the shopper is on their way to the payment page. Guards a second submit.


pending: boolean

A write is in flight.


status: CartStatus


testOrder: boolean

The checkout that started said it is a test-mode order.