Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
d3ef920718
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
   }
 }