Vuex reactive mapGetters with arguments passed through Vuex reactive mapGetters with arguments passed through vue.js vue.js

Vuex reactive mapGetters with arguments passed through


Here is a snippet from a project I have:

    computed: {        ...mapGetters('crm', ['accountWithId']),        account() {            return this.accountWithId(this.$route.params.id)        }    },

This makes this.account reactive and dependent on the param.

So...

computed: {    ...mapGetters([    'getSomeThing'  ]),  thing() {    return this.getSomeThing(this.id)  }},