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
}
Source:stackexchange.com