|
@@ -48,7 +48,8 @@ const actions = {
|
|
// mutations are operations that actually mutates the state.
|
|
// mutations are operations that actually mutates the state.
|
|
// each mutation handler gets the entire state tree as the
|
|
// each mutation handler gets the entire state tree as the
|
|
// first argument, followed by additional payload arguments.
|
|
// first argument, followed by additional payload arguments.
|
|
-// mutations can be recorded by middlewares.
|
|
|
|
|
|
+// mutations must be synchronous and can be recorded by middlewares
|
|
|
|
+// for debugging purposes.
|
|
const mutations = {
|
|
const mutations = {
|
|
[INCREMENT] (state) {
|
|
[INCREMENT] (state) {
|
|
state.count++
|
|
state.count++
|