[Vuejs]-Why is my getter from store in App.vue class undefined

0👍

So after looking closely at the example given in the vuex-typescript readme, I noticed that I was passing the wrong namespace when calling the function getStoreAccessors.

Using dispaVuex instead of Test like this fixed the problem:

const {read} = getStoreAccessors<DispatchState, RootState>("dispaVuex");

Leave a comment