useCartPending

cart · /react·function

Read pending mutations from the provider — either the whole queue or the single entry currently targeting a specific line id.

Signature

@nordcom/commerce-cart

Parameters

NameTypeDescription
lineIdstring

Returns

The full queue when no line id is provided, the matching pending mutation when one is found, or null for an unmatched line id.

CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions

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

On this page