I have a props that i want to use to make a dynamic mapGetters but the the mapGetters sees the props as undefined, probably because the computed is loaded before the props. Do anybody know how i can make it dynamic? my code is as follow:
export default {
props: ['listType'],
components: {
addrow: AddRow
},
computed: {
...mapGetters({
list: `${this.listType}/list`,
current: 'Dropdown/current'
})
},
}
this
keyword like list: `${listType}/list – Retrospectionlist:this.listType+'/list'
– Retrospectioncomputed:{getList(){return this.listType}}
it should work – Retrospection