Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/pages/guides/query-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ useQuery(['todos', todoId], async () => {
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:

```js
function Todos({ completed }) {
function Todos({ status, page }) {
const result = useQuery(['todos', { status, page }], fetchTodoList)
}

Expand Down