Skip to content

Releases: repairearth/vuex-actions

v1.1.0

18 Aug 07:17
Compare
Choose a tag to compare

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
    }
  }
})

v1.0.3

12 Aug 13:15
Compare
Choose a tag to compare

🐛 Fix bug when there are not all pending(), success(), error() handlers with async actions

Bug fix

10 Aug 11:15
Compare
Choose a tag to compare

🐛 Fix the bug when using $inject to handle promises in sequence when there are more than three dependent properties