Skip to content

Commit d3ef920

Browse files
akanshgulatiktsn
authored andcommitted
Unused paramater : getter (vuejs#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`
1 parent 6dd7022 commit d3ef920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/getters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ You can also pass arguments to getters by returning a function. This is particul
6868
```js
6969
getters: {
7070
// ...
71-
getTodoById: (state, getters) => (id) => {
71+
getTodoById: (state) => (id) => {
7272
return state.todos.find(todo => todo.id === id)
7373
}
7474
}

0 commit comments

Comments
 (0)