Home > @vue-storefront/core > UseWishlist
UseWishlist interface
Signature:
export interface UseWishlist<WISHLIST, WISHLIST_ITEM, PRODUCT, API extends PlatformApi = any> extends Composable<API>
Extends: Composable
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| error | ComputedProperty<UseWishlistErrors> | ||
| loading | ComputedProperty<boolean> | ||
| setWishlist | (wishlist: WISHLIST) => void | ||
| wishlist | ComputedProperty<WISHLIST> |
Methods
| Method | Description |
|---|---|
| addItem(params) | |
| clear() | |
| isInWishlist(params) | |
| load() | |
| load(params) | |
| removeItem(params) |