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

Function fetchPosts

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

Source from the content-addressed store, hash-verified

29}
30
31export const fetchPosts = async () => {
32 console.info('Fetching posts...')
33 return axios
34 .get<Array<PostType>>(`${queryURL}/posts`)
35 .then((r) => r.data.slice(0, 10))
36}

Callers

nothing calls this directly

Calls 3

infoMethod · 0.65
thenMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected