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