Magento 2.0.12
I have a widget that depends on mage/cookies
, so I have:
define([
"jquery",
'jquery/ui',
"mage/cookies"
], function($){
// Some stuff
});
Everything works fine until I add an item to cart. When I do it Magento set the private_content_version
cookie my widget stops working. It does nothing more, it doesn't pass for any function, it's as if there is nothing in the callback.
The widget returns to work if:
- I remove the cookie
- I remove "mage/cookies" dependency from my definition function
- I disable the cache
None of the three things are fine to me. Any ideas?