فهرست منبع

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)
   }
 }