Implementing infinite scrolling without knowing the next page
Hey all. I’m new to tanstack query and I’m trying to implement an infinite query but the only thing is that the backend I’m working with does not return a next page param. The server accepts a skip and take params. What I currently do is keep a page counter in state and extrapolate the next skip and take value from that. What I’m struggling with is figuring out how to implement that with useInfiniteQuery.
Has anyone done something similar and can you share any insights?
Thanks!
Has anyone done something similar and can you share any insights?
Thanks!