Answer the question
In order to leave comments, you need to log in
Is it possible for computed properties to work when getting data for them from vuex?
Good day.
There is something like this code:
computed: {
myData() {
let data = [] || this.$store.getters.getMyData();
return data;
},
isValid(){
return this.myData.list.some( el => el.id === this.id )
}
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question