Infinite Scroll using React Query