Преглед на файлове

mention that mutations must be sync

Evan You преди 9 години
родител
ревизия
a2236014a5
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      examples/counter/vuex.js

+ 2 - 1
examples/counter/vuex.js

@@ -48,7 +48,8 @@ const actions = {
 // mutations are operations that actually mutates the state.
 // each mutation handler gets the entire state tree as the
 // 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 = {
   [INCREMENT] (state) {
     state.count++