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

Home > @vue-storefront/core > UseCompare

UseCompare interface

Signature:

export interface UseCompare<PRODUCT> 

Properties

Property Modifiers Type Description
addToCompare (product: PRODUCT) => Promise<void>
clearCompare () => Promise<void>
compare ComputedProperty<PRODUCT[]>
loading ComputedProperty<boolean>
removeFromCompare (product: PRODUCT) => Promise<void>