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

Function postQueryOptions

e2e/react-router/basic-react-query/src/posts.ts:39–43  ·  view source on GitHub ↗
(postId: string)

Source from the content-addressed store, hash-verified

37}
38
39export const postQueryOptions = (postId: string) =>
40 queryOptions({
41 queryKey: ['posts', { postId }],
42 queryFn: () => fetchPost(postId),
43 })
44
45export const postsQueryOptions = queryOptions({
46 queryKey: ['posts'],

Callers 2

main.tsxFile · 0.90
PostRouteComponentFunction · 0.90

Calls 1

fetchPostFunction · 0.70

Tested by

no test coverage detected