I have a list of products on a page. Each product has an attribute for whether or not it is in my wishlist.
I set this attribute with the attached formula, checking if the results of my API call contains the ID of the product. If it contains the ID, set to True, if it doesn't set to False.
This works when I first load the page. However, if I then add or remove a product from my wishlist, the attribute value is not updated until I refresh the page again.
The wishlist API request is set to auto-fetch, and it is also being called "when" I trigger my component event to add/remove the product from my wishlist.
Any ideas on whether I'm doing something wrong here, an alternative solution and/or if this is intended behaviour?
I've just started diving into components/events/attributes so hopefully it's just a self-inflicted bug