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

Function postQueryOptions

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

Source from the content-addressed store, hash-verified

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

Callers 2

main.tsxFile · 0.90
PostRouteComponentFunction · 0.90

Calls 1

fetchPostFunction · 0.70

Tested by

no test coverage detected