Answer the question
In order to leave comments, you need to log in
Vuex - how to use mapAction with this handy way?
Colleagues, tell me, please - I use mapActions for vuex in the following scheme:
...mapActions([
'user/setUser'
]),
For some reason it doesn't work. Only works like this:
...mapActions('user', [
'setUser'
]),
What could be the reason?
(focused on this section of the docs https://vuex.vuejs.org/guide/modules.html#binding-...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question