Skip to content

Commit 6399291

Browse files
38elementsktsn
authored andcommitted
Update docs/ja (#1059)
* Update api.md * Update api.md
1 parent 6af9f8d commit 6399291

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/ja/api.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ const store = new Vuex.Store({ ...options })
3434

3535
``` js
3636
{
37-
state, // store.state と同じか、モジュール内にあればローカルステート
38-
rootState, // store.state と同じ。ただしモジュール内に限る
39-
commit, // store.commit と同じ
40-
dispatch, // store.dispatch と同じ
41-
getters, // store.getters と同じか、モジュール内にあればローカルゲッター
42-
rootGetters // store.getters と同じ。ただしモジュール内に限る
37+
state, // `store.state` と同じか、モジュール内にあればローカルステート
38+
rootState, // `store.state` と同じ。ただしモジュール内に限る
39+
commit, // `store.commit` と同じ
40+
dispatch, // `store.dispatch` と同じ
41+
getters, // `store.getters` と同じか、モジュール内にあればローカルゲッター
42+
rootGetters // `store.getters` と同じ。ただしモジュール内に限る
4343
}
4444
```
4545

@@ -140,7 +140,7 @@ const store = new Vuex.Store({ ...options })
140140

141141
- **`watch(getter: Function, cb: Function, options?: Object)`**
142142

143-
リアクティブにゲッター関数の返す値を監視します。値が変わった場合は、コールバックを呼びます。ゲッターはストアの状態のみを引数として受け取ります。 Vue の`vm.$watch`メソッドと同じオプションをオプションのオブジェクトとして受け付けます。
143+
リアクティブにゲッター関数の返す値を監視します。値が変わった場合は、コールバックを呼びます。ゲッターはストアの `state` を最初の引数として、 `getters`2番目の引数として受け取ります。 Vue の`vm.$watch`メソッドと同じオプションをオプションのオブジェクトとして受け付けます。
144144

145145
監視を止める場合は、ハンドラ関数の返り値を関数として呼び出します。
146146

0 commit comments

Comments
 (0)