[Vuejs]-Can't access specific state property in Vuex store

0👍

Just posting this in case anyone runs into this issue – the issue was indeed a race condition. I fixed it by writing the action that commits the user_id as a promise and then changing the second action that requires the user_id to only dispatch when the promise resolves, following this comment: https://stackoverflow.com/a/40167499/12462293

Leave a comment