New
Add handleMutations
, which wraps a set of mutations with handleAction.
mutations: handleMutations({
SINGLE: (state, mutation) => {
state.obj = mutation
},
CHANGE: {
pending(state, mutation) {
state.obj = mutation
},
success(state, mutation) {
state.obj = mutation
},
error(state, mutation) {
state.obj = mutation
}
}
})