useCartCost

cart · /react·function

Read the optimistic-aware cost slice from the nearest cart provider.

Signature

@nordcom/commerce-cart
function useCartCost(): CartCostValue;

Returns

The cost subtotal/total/tax/shipping plus the stale flag indicating that totals are predicted, not server-confirmed.

CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions

Metadata@nordcom/commerce-cart@0.2.2Open in GitHub ↗

On this page