Using useInfiniteQuery to gather all pages - TanStack