useCartLines
●cart · /react·function
Read the optimistic-aware lines slice from the nearest cart provider.
Signature
function useCartLines(): CartLinesValue;Returns
The current lines plus the confirmed cart id (or null before
seed). Re-renders only when the lines slice changes.
Related
CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions
useCartEvents
Subscribe to a single cart event type for the lifetime of the calling component. Resubscribes whenever type or handler identity changes — stabilize the handler
useCartMeta
Read the cart meta slice (discount codes, gift cards, buyer identity, note, attributes, checkout URL) from the nearest provider.