On the first load of this component the vuex state hasn't been set so I get:
TypeError: this.$store.state.whoami.whoami.email is undefined
Stack trace:
as the axios promise within vuex-rest-api has not completed yet. I thought computed waits until all state has settled? Any tips? Once the promise has completed it's all set OK.
Hi, I'm setting the email prop as a computed property from vuex like so:
and
On the first load of this component the vuex state hasn't been set so I get:
as the axios promise within vuex-rest-api has not completed yet. I thought computed waits until all state has settled? Any tips? Once the promise has completed it's all set OK.
Thanks.