(React Query v3) useInfiniteQuery
We can use 'useQuery' to make infinite scroll, but this method makes it easier.
Prefetching is used. If you check the devTool, you will notice data of the next page is already fetched.
Below is an example. Please don't forget to check the comments.