MCPcopy Create free account
hub / github.com/SvelteStack/svelte-query / usePosts

Function usePosts

examples/custom-hooks/src/components/usePosts.ts:12–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10}
11
12const usePosts = () => {
13 return useQuery<
14 { id: string; title: string; body: string }[],
15 AxiosError
16 >('posts', getPosts)
17}
18
19export default usePosts

Callers

nothing calls this directly

Calls 1

useQueryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…