Home > @vsf-enterprise/bigcommerce-theme > UseGuestWishlistInterface
# UseGuestWishlistInterface interface
Data and methods returned from the useGuestWishlist() composable
Signature:
export interface UseGuestWishlistInterface
# Properties
| Property | Type | Description |
|---|---|---|
| error | Ref<UseWishlistErrors> | Contains errors from the composable methods |
| loading | Ref<boolean> | Indicates whether any of the methods is in progress |
# Methods
| Method | Description |
|---|---|
| addItem(product) | Add a product to the guest wishlist. |
| clear() | Removes all items from the guest wishlist and create new, empty guest wishlist. |
| isInWishlist(product) | Checks whether a product is in the guest wishlist. |
| load() | Loads the guest wishlist. |
| removeItem(wishlistItem) | Removes a wishlistItem from the guest wishlist. |