소스 검색

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++