Access vue or vuetify instance inside vuex store or getters

Viewed 767

I am trying to access $vuetify instance from inside the vuex store or getters to translate strings that are in my static categories array. The problem is that this is undefined inside the getters and store.

How should I pass my app instance to store?

Note that I did try couple answers from this question but they all do it inside vuex actions. And inside the actions this is not undefined

Is my only option to make a function that just returns an array? If it is possible it would good to avoid it Any help is appreciated.

0 Answers
Related