Hi,
Would it be possible to provide some examples on how to use mapped actions and mutations inside the class? I read the https://github.com/vuejs/vue-class-component/issues/56 it shows how to map them but does not show how to use this mapped mutations and actions. If you do something like this
@Component({
methods: {
...mapActions('
'doSomething'
)
}
})
export default class MyComp extends Vue {
test() {
this.doSomething('test')
}
}
It will not have an access to doSomething method inside the class.
How about using vuex-class?
@kaorun343 Thanks, I saw this library already but haven't tested it yet, I thought there was a way of going without it. But it seems there is no other option at the moment.
If that the case, please provide the example repo that reproduce this problem.
Closing for inactivity.
Most helpful comment
How about using vuex-class?