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

Function fetchPosts

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 3

infoMethod · 0.65
thenMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected