v0.6.2
New
-
store.dispatchnow also supports object-format mutations. For example:store.dispatch({ type: 'INCREMENT', by: 10 })
The corresponding mutation handler function will receive the object as the second argument:
mutations: { INCREMENT (state, payload) { state.count += payload.by } }
-
store.hotUpdatenow supports swapping individual modules. Previouslystore.hotUpdate({ modules: { someModule }})would leave the store with onlysomeModule, now it simply updatessomeModuleand leaves others intact. -
Standalone build now auto installs when global
Vueis present.