useCartCount
●cart · /react·function
Read the optimistic-aware total quantity from the nearest cart provider.
Signature
function useCartCount(): number;Returns
The summed line quantity used to drive cart badges. Re-renders only when the count slice changes.
Related
CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions