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

Function postQueryOptions

e2e/react-start/basic-react-query/src/utils/posts.tsx:51–55  ·  view source on GitHub ↗
(postId: string)

Source from the content-addressed store, hash-verified

49 })
50
51export const postQueryOptions = (postId: string) =>
52 queryOptions({
53 queryKey: ['post', postId],
54 queryFn: () => fetchPost({ data: postId }),
55 })

Callers 4

posts.$postId.tsxFile · 0.90
PostComponentFunction · 0.90
PostDeepComponentFunction · 0.90

Calls 1

fetchPostFunction · 0.50

Tested by

no test coverage detected