useCartCost
●cart · /react·function
Read the optimistic-aware cost slice from the nearest cart provider.
Signature
function useCartCost(): CartCostValue;Returns
The cost subtotal/total/tax/shipping plus the stale flag
indicating that totals are predicted, not server-confirmed.
Related
CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions