I tried to implement an infinite scroll with my react.js project using Infinite Queries in react-query and react-virtual. But Infinite query is supporting with the cursor and the page. and my API is not supported for pages, and it has a limit, offset, and totalCount in the metaData as below
meta: { limit: 100, offset: 0, total: 1000}
Are Infinite Queries support for limit and offset?
There are links that I followed.
https://codesandbox.io/s/github/tannerlinsley/react-virtual/tree/master/examples/infinite-scroll
https://react-query.tanstack.com/docs/guides/infinite-queries