I have a namespaced vuex store that returns an entry of the store based on the parameter of the current route. This works as expected for the initial load. However, it is not reloaded whenever the route changes. Is there a way to reload / force the recalculation of the getter on change of the route? Answer It would be
Tag: vuex-modules
Vue/Nuxt/Vuex – [NUXT:SSR] [ERROR] [vuex] unknown getter
The error appears when I use a v-for loop to go through the ‘allPosts’ data on my div. The Nuxt documentation says ‘Modules: every .js file inside the store directory is transformed as a namespaced module’. Maybe I’m missing something in this regard? pages/index.vue store/index.js store/posts.js Answer You have a number of issues in how you are setting up and