I want to refresh wishlist mage-cache-storage
data (for remove product from wishlist on product detail page)same like does on add product on wishlist.
Has anyone know how data refresh of mage-cache-storage
of wishlist?
Can you please explain.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityWhen you adding or remove items in Wishlist or Cart it doing ajax request or straight load another url in your tab to process you request on backend. And also happens local storage sections invalidation from js on FE, it tells your browser that section in local storage should be updated and does ajax request for that. You can open tab network in developer console in google chrome and filter the XHR requests with "?section" and you will be able to see the response data which should be replace in your local storage sections.
controller_action_predispatch_wishlist_index_remove
now you can refreshmage-cache-storage
programatically there