You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i parse in my UserStoreState object into the getter there is data but it is the entire user state, as soon as I try to only access the user object within the state I get undefined even though there is data within it. Unsure if this is because namespacing is false
Vuex Store
importVuefrom'vue'importVuex,{Store}from'vuex'importUserStorefrom'@/vuex/user'Vue.use(Vuex)constdebug=process.env.NODE_ENV!=='production'conststore: Store<any> = new Vuex.Store({modules: {user: UserStore,},strict: debug,})
Vue.prototype.$store = store
export default store
Stumbled across this lib through this article https://medium.com/js-dojo/using-fully-typed-vuex-mutations-with-vuex-typescript-7597f56eceec. All is working well but getters are always returning undefined when using dot notation to get into the state.
If i parse in my UserStoreState object into the getter there is data but it is the entire user state, as soon as I try to only access the user object within the state I get undefined even though there is data within it. Unsure if this is because namespacing is false
Vuex Store
User Store Module
UserStore
BaseStoreService
The text was updated successfully, but these errors were encountered: