useCartLines

cart · /react·function

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

Signature

@nordcom/commerce-cart
function useCartLines(): CartLinesValue;

Returns

The current lines plus the confirmed cart id (or null before seed). Re-renders only when the lines slice changes.

CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions

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

On this page