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

Function postQueryOptions

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

Source from the content-addressed store, hash-verified

45 })
46
47export const postQueryOptions = (postId: string) =>
48 queryOptions({
49 queryKey: ['post', postId],
50 queryFn: () => fetchPost({ data: postId }),
51 })

Callers 4

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

Calls 1

fetchPostFunction · 0.50

Tested by

no test coverage detected