I don't know how to call, multiple NamespacedHelpers with vuex, i tried this:
import { createNamespacedHelpers } from 'vuex'
const { mapActions, mapMutations } = createNamespacedHelpers(['payments', 'auth'])
methods: {
...mapActions(['registerBankData', 'updateBankData', 'getBankData'], ['login']),
...mapMutations(['setBankData']),
...
}
Also tried this:
import { createNamespacedHelpers } from 'vuex'
const { mapActions, mapMutations } = createNamespacedHelpers('payments', 'auth')
methods: {
...mapActions(['registerBankData', 'updateBankData', 'getBankData', 'login']),
...mapMutations(['setBankData']),
...
}
but doesn't work..