Skip to content

Commit 57be6e6

Browse files
authored
docs: fix misleading code example (TanStack#1567)
1 parent 18091fe commit 57be6e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ useQuery(['todos', todoId], async () => {
4949
Query keys are not just for uniquely identifying the data you are fetching, but are also conveniently passed into your query function and while not always necessary, this makes it possible to extract your query functions if needed:
5050

5151
```js
52-
function Todos({ completed }) {
52+
function Todos({ status, page }) {
5353
const result = useQuery(['todos', { status, page }], fetchTodoList)
5454
}
5555

0 commit comments

Comments
 (0)