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

Home > @vue-storefront/core > UseWishlist > addItem

UseWishlist.addItem() method

Signature:

addItem(params: {
        product: PRODUCT;
        customQuery?: CustomQuery;
    }): Promise<void>;

Parameters

Parameter Type Description
params { product: PRODUCT; customQuery?: CustomQuery; }

Returns:

Promise<void>