My store setup is as follows:
export const store = new Vuex.Store({
state: {
someProp: someAsyncFn().then(res => res),
...
},
...
})
I'm concerned that someProp
might not be waiting for the values to be resolved. Is this a problem? Should I consider setting an empty object as the default and updating the state with a mutation upon load instead?