MCPcopy Create free account
hub / github.com/TanStack/router / fetchPosts

Function fetchPosts

e2e/solid-router/basic-file-based/src/posts.tsx:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28export const fetchPosts = async () => {
29 console.info('Fetching posts...')
30 await new Promise((r) => setTimeout(r, 500))
31 return axios
32 .get<Array<PostType>>(`${queryURL}/posts`)
33 .then((r) => r.data.slice(0, 10))
34}

Callers

nothing calls this directly

Calls 3

infoMethod · 0.65
thenMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected