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