Skip to content

Commit 6b2bb21

Browse files
authored
docs: Fixes incorrect prop variable in Todos example (TanStack#1590)
The prop referenced `completed` But the variable used was `todoId`.
1 parent b756f56 commit 6b2bb21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/pages/guides/query-keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ useQuery(['todos', undefined, page, status], ...)
6666
Since query keys uniquely describe the data they are fetching, they should include any variables you use in your query function that **change**. For example:
6767

6868
```js
69-
function Todos({ completed }) {
69+
function Todos({ todoId }) {
7070
const result = useQuery(['todos', todoId], () => fetchTodoById(todoId))
7171
}
7272
```

0 commit comments

Comments
 (0)