v0.6.2
New
-
store.dispatch
now 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.hotUpdate
now supports swapping individual modules. Previouslystore.hotUpdate({ modules: { someModule }})
would leave the store with onlysomeModule
, now it simply updatessomeModule
and leaves others intact. -
Standalone build now auto installs when global
Vue
is present.