()
| 69 | const states: Array<UseInfiniteQueryResult<InfiniteData<number>>> = [] |
| 70 | |
| 71 | function Page() { |
| 72 | const state = useInfiniteQuery({ |
| 73 | queryKey: key, |
| 74 | queryFn: ({ pageParam }) => sleep(10).then(() => pageParam), |
| 75 | getNextPageParam: (lastPage) => lastPage + 1, |
| 76 | initialPageParam: 0, |
| 77 | }) |
| 78 | states.push(state) |
| 79 | return null |
| 80 | } |
| 81 | |
| 82 | renderWithClient(queryClient, <Page />) |
| 83 |
nothing calls this directly
no test coverage detected
searching dependent graphs…