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 b8a97fb commit 06fad91Copy full SHA for 06fad91
examples/default-query-function/src/App.svelte
@@ -4,10 +4,11 @@
4
5
import BasicQuery from './BasicQuery.svelte'
6
7
- const defaultQueryFn = async key => {
+ const defaultQueryFn = async ({ queryKey }) => {
8
const { data } = await axios.get(
9
- `https://jsonplaceholder.typicode.com${key}`
+ `https://jsonplaceholder.typicode.com${queryKey[0]}`
10
)
11
+
12
return data
13
}
14
0 commit comments