Get a value from an observer in a Vuex getter Get a value from an observer in a Vuex getter vue.js vue.js

Get a value from an observer in a Vuex getter


I solved this creating a method getter called getEntityById like this

getters: {    getEntityById: (state) => (entity, id) => {        return state[entity][id];    }}

And calling it on a map function