useInfiniteQuery: `hasNextPage` does not seem to consider fewer-results-received-than-`limit`-given
What's the recommended practice for
hasNextPage to correctly be false when the records received were more than 0 but fewer than the limit prop (that's next to the cursor prop at the endpoint)?
To clarify the problem to solve: right now my limit is 11 and queries with 0 results correctly result in a hasNextPage of false, but queries with 1 or 2 results seem to have it true.
How do y'all typically tackle this subtlety?0 Replies