()
| 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 | |
| 79 | createRenderEffect(() => { |
| 80 | states.push({ ...state }) |
| 81 | }) |
| 82 | |
| 83 | return null |
| 84 | } |
| 85 | |
| 86 | renderWithClient(queryClient, () => <Page />) |
| 87 |
nothing calls this directly
no test coverage detected