Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/router
/ fetchPosts
Function
fetchPosts
e2e/solid-router/basic-virtual-file-based/src/posts.tsx:27–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
25
}
26
27
export const fetchPosts = async () => {
28
console.info(
'Fetching posts...'
)
29
return axios
30
.get<Array<PostType>>(`${queryURL}/posts`)
31
.then((r) => r.data.slice(0, 10))
32
}
Callers
nothing calls this directly
Calls
3
info
Method · 0.65
then
Method · 0.65
get
Method · 0.65
Tested by
no test coverage detected