If (beta)
or (alpha)
is marked in front of any release, it can be
installed as npm install vuex-module-decorators@beta
(or alpha similar).
preserveState: true
in module options to use vuex-persist
(OPTIONAL)@MutationAction
mutate
keys not in the modulenull
and then running @MutationAction
is possible nowthis.getterName
rootState
and rootGetters
this.context.rootState
and this.context.rootGetters
@Action
and @MutationAction
functions -rawError
decorator option
@Action
functions -commit
decorator option can now be optional@Action
functions -this.stateField
works pointing to fields in the module's statethis.context.commit('mutationName', payload)
is way to trigger mutationthis.context.getters['getterName'])
is the way to use gettersthis.mutationName(payload)
will work as wellthis.getterName
will work as wellgetModule()
even for non-dynamic modules> NOTE: From now on you have to usegetModule(ModuleClass)
> instead of the earlier getModule(ModuleClass.prototype)
unable to construct without new
error for transpiled ES5module
field to package.json for ES6 module loaders