useInfiniteQuery with maxPages considers empty data a page and removes a full page - TanStack