vuex-multi-commit
This package allows to combine code needed to commit multiple mutations inside one commit
call.
Installation
Vue
For NUXT import this package inside main store module or inside store.js
file
Usage
Instead of:
this$store this$store
You can write:
this$store
Instead of this:
this$store this$store this$store this$store
You can do:
this$store
If you want, you can use single object:
this$store
Unfortunately, so far this package doesn't allow to use arrays or objects inside store modules except root.