ソースを参照

fix store.watch() docs (#1047)

Michał Nykiel 7 年 前
コミット
327f35afd5
1 ファイル変更1 行追加1 行削除
  1. 1 1
      docs/en/api.md

+ 1 - 1
docs/en/api.md

@@ -140,7 +140,7 @@ const store = new Vuex.Store({ ...options })
 
 
 - **`watch(getter: Function, cb: Function, options?: Object)`**
 - **`watch(getter: Function, cb: Function, options?: Object)`**
 
 
-  Reactively watch a getter function's return value, and call the callback when the value changes. The getter receives the store's state as the only argument. Accepts an optional options object that takes the same options as Vue's `vm.$watch` method.
+  Reactively watch a getter function's return value, and call the callback when the value changes. The getter receives the store's state as the first argument, and getters as the second argument. Accepts an optional options object that takes the same options as Vue's `vm.$watch` method.
 
 
   To stop watching, call the returned handle function.
   To stop watching, call the returned handle function.