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

Function postsQueryOptions

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

Source from the content-addressed store, hash-verified

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

Callers 2

posts.tsxFile · 0.90
PostsComponentFunction · 0.90

Calls 1

fetchPostsFunction · 0.50

Tested by

no test coverage detected