In vuex store there is many similar states:
const state = {
count: 0,
count2: 1,
count3: 2
};
and for every state there is a corresponding getter:
const getters = {
getCount: (state) => state.count,
getCount2: (state) => state.count2,
getCount3: (state) => state.count3,
};
Is there a way to turn these 3 in one dynamic getter who would accept the key and get the corresponding data.