[Vuejs]-Vuex-persistedstate: How can I use getters with vuex-persistedstate?

5👍

I think you’re accessing outside state object. Please try to add state as function parameter:

   const getters = {
      loginStatus: (state) => state.loginStatus,
      email: (state) => state.email,
      isStaff: (state) => state.isStaff,
      company: (state) => state.company,
      token: (state) => state.token
    }
👤ittus

Leave a comment