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

Function postQueryOptions

examples/solid/basic-solid-query/src/posts.ts:35–39  ·  view source on GitHub ↗
(postId: string)

Source from the content-addressed store, hash-verified

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

Callers 2

main.tsxFile · 0.90
PostRouteComponentFunction · 0.90

Calls 1

fetchPostFunction · 0.70

Tested by

no test coverage detected