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

Function postQueryOptions

e2e/solid-router/basic-solid-query/src/posts.ts:37–41  ·  view source on GitHub ↗
(postId: string)

Source from the content-addressed store, hash-verified

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

Callers 2

main.tsxFile · 0.90
PostRouteComponentFunction · 0.90

Calls 1

fetchPostFunction · 0.70

Tested by

no test coverage detected