Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/router
/ fetchPosts
Function
fetchPosts
e2e/solid-start/virtual-routes/src/posts.tsx:32–38 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
30
}
31
32
export const fetchPosts = async () => {
33
console.info(
'Fetching posts...'
)
34
await new Promise((r) => setTimeout(r, 500))
35
return axios
36
.get<Array<PostType>>(`${queryURL}/posts`)
37
.then((r) => r.data.slice(0, 10))
38
}
Callers
2
posts.tsx
File · 0.90
posts.tsx
File · 0.90
Calls
3
info
Method · 0.65
then
Method · 0.65
get
Method · 0.65
Tested by
no test coverage detected