[Vuejs]-Vue Js Store Management

0👍

You might get the [ob: Observer] while trying to access getters through store directly. And it is not a recommended way of doing so.

Try using mapGetters in your computed properties of the JS file which you are using. Something like:

computed:{
        ...mapGetters(['changeValue'])
},

After which you can access changeValue in this(vm instance). So just call

this.changeValue

You can read more about mapGetters here

I hope this helps.

Leave a comment