I am using vuex and vuejs 2 together.
vuex
vuejs 2
I am new to vuex, I want to watch a store variable change.
store
I want t
You could also subscribe to the store mutations:
store.subscribe((mutation, state) => { console.log(mutation.type) console.log(mutation.payload) })
https://vuex.vuejs.org/api/#subscribe