Ver código fonte

Modify document to remove 'silent commit' (#1239)

あろえりーな 7 anos atrás
pai
commit
cc0c146877
1 arquivos alterados com 0 adições e 17 exclusões
  1. 0 17
      docs/ja/mutations.md

+ 0 - 17
docs/ja/mutations.md

@@ -77,23 +77,6 @@ mutations: {
 }
 ```
 
-### サイレントコミット
-
-> 注意: この機能は開発ツール内にミューテーション・フィルタが実装された後に非推奨になる予定です。
-
-デフォルトでは全てのコミットされたミューテーションはプラグイン(開発ツール等)に送られます。しかし場合によっては、プラグインに全ての状態の変化を記録して欲しくないこともあるでしょう。あるいは、短い間隔やポーリングでのストアへの複数のコミットも、常に追跡する必要はないでしょう。こうしたケースでは、`store.commit` に第3引数を渡すことで、特定のミューテーションをプラグインに気付かせないようにすること("silence")ができます:
-
-``` js
-store.commit('increment', {
-  amount: 1
-}, { silent: true })
-
-// オブジェクトスタイルのコミット
-store.commit({
-  type: 'increment',
-  amount: 1
-}, { silent: true })
-```
 
 ### Vue のリアクティブなルールに則ったミューテーション