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 219478a commit 2371c65Copy full SHA for 2371c65
examples/basic/src/components/Posts.svelte
@@ -4,7 +4,7 @@
4
5
export let setPostId
6
7
- async function getPosys() {
+ async function getPosts() {
8
const { data } = await axios.get(
9
'https://jsonplaceholder.typicode.com/posts'
10
)
@@ -13,9 +13,9 @@
13
14
const client = useQueryClient()
15
const posts = useQuery<
16
- { id: string; title: string; body: string }[],
+ { id: number; title: string; body: string }[],
17
AxiosError
18
- >('posts', getPosys)
+ >('posts', getPosts)
19
</script>
20
21
<div>
0 commit comments