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 can also use mapState in your vue component to direct getting state from store.
In your component:
computed: mapState([ 'my_state' ])
Where my_state is a variable from the store.
my_state