Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/router
/ postQueryOptions
Function
postQueryOptions
e2e/react-start/basic-react-query/src/utils/posts.tsx:51–55 ·
view source on GitHub ↗
(postId: string)
Source
from the content-addressed store, hash-verified
49
})
50
51
export const postQueryOptions = (postId: string) =>
52
queryOptions({
53
queryKey: [
'post'
, postId],
54
queryFn: () => fetchPost({ data: postId }),
55
})
Callers
4
posts.$postId.tsx
File · 0.90
PostComponent
Function · 0.90
posts_.$postId.deep.tsx
File · 0.90
PostDeepComponent
Function · 0.90
Calls
1
fetchPost
Function · 0.50
Tested by
no test coverage detected