[Vuejs]-Vue component is not getting re-rendered/refreshed

0👍

Your store is there to share information between components.

Getters should be reactive by default, so your getter isAuthenticated should be reflected in all components when it changes, however it depends how you’re writing your getters.

If you’re adding properties to objects on the fly in your state, you need to use
Vue.Set/this.$set

Try and take a look at this example, it might help you out.

https://codesandbox.io/s/vuex-store-yhyj4

Leave a comment