()
| 50 | const states: Array<UseInfiniteQueryResult<InfiniteData<number>>> = [] |
| 51 | |
| 52 | function Page() { |
| 53 | const state = useInfiniteQuery({ |
| 54 | queryKey: key, |
| 55 | queryFn: ({ pageParam }) => sleep(10).then(() => pageParam), |
| 56 | getNextPageParam: (lastPage) => lastPage + 1, |
| 57 | initialPageParam: 0, |
| 58 | }) |
| 59 | states.push(state) |
| 60 | return null |
| 61 | } |
| 62 | |
| 63 | renderWithClient(queryClient, <Page />) |
| 64 |
nothing calls this directly
no test coverage detected