({
queryKey: [, n],
})
| 88 | type MyQueryKey = readonly ['my-data', number] |
| 89 | |
| 90 | const getMyDataArrayKey: QueryFunction<MyData, MyQueryKey> = ({ |
| 91 | queryKey: [, n], |
| 92 | }) => { |
| 93 | return n + 42 |
| 94 | } |
| 95 | |
| 96 | useQuery(() => ({ |
| 97 | queryKey: ['my-data', 100] as const, |
nothing calls this directly
no outgoing calls
no test coverage detected