瀏覽代碼

Unused paramater : getter (#1039)

In the current getter example, there is no need of including `getters` dependency as we are not using it while defining the method to search by Id, `getTodoById`
Akansh Gulati 7 年之前
父節點
當前提交
d3ef920718
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/en/getters.md

+ 1 - 1
docs/en/getters.md

@@ -68,7 +68,7 @@ You can also pass arguments to getters by returning a function. This is particul
 ```js
 getters: {
   // ...
-  getTodoById: (state, getters) => (id) => {
+  getTodoById: (state) => (id) => {
     return state.todos.find(todo => todo.id === id)
   }
 }