You are reading the documentation for Vue Storefront v2. See the latest docs.

Home > @vue-storefront/core > UseCompare > addToCompare

UseCompare.addToCompare property

Signature:

addToCompare: (product: PRODUCT) => Promise<void>;