React Query: useQuery

So I am trying to implement pagination with React Query. Been reading a lot of docs and examples. In many examples, the useQuery data has a "hasMore" property. I don't have this..? When I log data, it's not there. So is there any way for me to know that the next page is the last page..?
2 Replies
barry
barry2y ago
useInfiniteQuery
rre
rre2y ago
yeah, using that. still stuff seems a bit wonky and seems like most of the examples are a bit outdated for example hasNextPage in InfiniteQuery returns true even though there isn't a next page..?
Want results from more Discord servers?
Add your server