Skip to content

Commit a0820a9

Browse files
committed
docs: update query-key docs
add another comment to the defaultQueryFn example
1 parent 2bdb733 commit a0820a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/src/pages/guides/default-query-function.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ If you find yourself wishing for whatever reason that you could just share the s
77

88
```js
99
// Define a default query function that will receive the query key
10+
// the queryKey is guaranteed to be an Array here
1011
const defaultQueryFn = async ({ queryKey }) => {
1112
const { data } = await axios.get(`https://jsonplaceholder.typicode.com${queryKey[0]}`);
1213
return data;

0 commit comments

Comments
 (0)