[Vuejs]-Vuex store is undefined for the state object

0👍

The sandbox tells you what is wrong with your code. You’re using ‘store’ before it was defined. I’m not sure on your entity structure but I would change your code so it does something like pick a random member when you add a message. Members is also empty at the start so it would just pick null anyway.

Problem description

Leave a comment