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

Function postsQueryOptions

e2e/react-start/basic-react-query/src/utils/posts.tsx:23–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21)
22
23export const postsQueryOptions = () =>
24 queryOptions({
25 queryKey: ['posts'],
26 queryFn: () => fetchPosts(),
27 })
28
29export const fetchPost = createServerFn({ method: 'GET' })
30 .validator((postId: string) => postId)

Callers 2

posts.tsxFile · 0.90
PostsComponentFunction · 0.90

Calls 1

fetchPostsFunction · 0.50

Tested by

no test coverage detected