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