Skip to contentOpen History to see the last commit
postQueryOptions.tsx
8 lines239 Bytes
1import { queryOptions } from '@tanstack/solid-query' 2import { fetchPost } from './posts' 4export const postQueryOptions = (postId: string) => 6 queryKey: ['posts', { postId }], 7 queryFn: () => fetchPost(postId),