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

Function getPosts

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

Source from the content-addressed store, hash-verified

3
4
5async function getPosts() {
6 const { data } = await axios.get(
7 'https://jsonplaceholder.typicode.com/posts'
8 )
9 return data
10}
11
12const usePosts = () => {
13 return useQuery<

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…