(input: string)
| 1316 | } |
| 1317 | |
| 1318 | function useTheQuery(input: string) { |
| 1319 | return useQuery({ |
| 1320 | staleTime: Infinity, |
| 1321 | queryKey: [key, input], |
| 1322 | queryFn: async () => { |
| 1323 | await vi.advanceTimersByTimeAsync(1) |
| 1324 | return input + ' response' |
| 1325 | }, |
| 1326 | }) |
| 1327 | } |
| 1328 | |
| 1329 | function Page() { |
| 1330 | const [input, setInput] = React.useState('defaultInput') |
no test coverage detected
searching dependent graphs…