()
| 56 | const states: Array<UseInfiniteQueryResult<InfiniteData<number>>> = [] |
| 57 | |
| 58 | function Page() { |
| 59 | const state = useInfiniteQuery(() => ({ |
| 60 | queryKey: key, |
| 61 | queryFn: ({ pageParam }) => sleep(10).then(() => pageParam), |
| 62 | getNextPageParam: (lastPage) => lastPage + 1, |
| 63 | initialPageParam: 0, |
| 64 | })) |
| 65 | |
| 66 | createRenderEffect(() => { |
| 67 | states.push({ ...state }) |
| 68 | }) |
| 69 | |
| 70 | return null |
| 71 | } |
| 72 | |
| 73 | renderWithClient(queryClient, () => <Page />) |
| 74 |
nothing calls this directly
no test coverage detected