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