Open alexander-girsh opened 5 years ago
I had the same problem
@noguilty4you @MauricioHernanCabrera Another option is to just use vue.prototype.$cookie
directly.
import vue from 'vue'
async someAction ({ commit }) {
// Do something
vue.prototype.$cookie.set(key, value)
}
@noguilty4you @MauricioHernanCabrera Another option is to just use
vue.prototype.$cookie
directly.import vue from 'vue' async someAction ({ commit }) { // Do something vue.prototype.$cookie.set(key, value) }
thanks, vue.prototype is interesting syntax
Hi there, this plugin is comfy (thank you, mr. Alfhen) , but if you want to incapsulate smth in vuex store (for example the choice between cookie and local storage), you may have an issue: from-the-box vuex doesn't know about this.$cookie or vm.$cookie.
All u need is just reinitialize that. Look on the pictures.
![app call](https://user-images.githubusercontent.com/34337846/45598357-6c455d00-b9e3-11e8-96de-f7a46d953acb.png)