We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bdb733 commit a0820a9Copy full SHA for a0820a9
docs/src/pages/guides/default-query-function.md
@@ -7,6 +7,7 @@ If you find yourself wishing for whatever reason that you could just share the s
7
8
```js
9
// Define a default query function that will receive the query key
10
+// the queryKey is guaranteed to be an Array here
11
const defaultQueryFn = async ({ queryKey }) => {
12
const { data } = await axios.get(`https://jsonplaceholder.typicode.com${queryKey[0]}`);
13
return data;
0 commit comments