(id: number)
| 81 | } |
| 82 | |
| 83 | const getPostById = async (id: number): Promise<Post> => { |
| 84 | const response = await fetch( |
| 85 | `https://jsonplaceholder.typicode.com/posts/${id}`, |
| 86 | ) |
| 87 | return await response.json() |
| 88 | } |
| 89 | |
| 90 | function createPost(postId: number) { |
| 91 | return useQuery(() => ({ |
no outgoing calls
no test coverage detected
searching dependent graphs…