Currently, my Vuex store is being used to store a user object. This code snippet is a getter function for the user object:
getters: {
user: (state) => state,
isAuthenticated: state => {
console.log("user object", state);
console.log("authorized", state.authorized);
return state.authorized;
}
},
When I invoke this getter, the following output is generated in the console.
It can be observed that the value of 'authorized' changes when accessing the entire object versus just the specific value. Any suggestions on why this might be happening?