Closed heylols closed 3 years ago
Hey @heylols ,
this is similar to #89. We're using swr
under the hook and useWishlist({includeProducts : true })
uses a different key than useWishlist()
.
When you use useAddItem()
you're using the key used in useWishlist()
.
You have to use useAddItem({includeProducts : true })
to update useWishlist({includeProducts : true })
useWishlist({includeProducts : true })
Thanks mate!
Previously I opened the ticket where the Wishlist does not contain the products : https://github.com/bigcommerce/storefront-data-hooks/issues/103
Right now, the issue is if I add or remove items in the wishlist, the items returned are not updating.
Eg:
But if I do not include the
includeProducts
parameter, the items are updating.Eg: