I'm updating our app to 1.x, and I've noticed an issue with usePaginatedQuery. I'm using it within the context of a filter, as you type it re-queries, however if I really go at it on my keyboard, sometimes I get a blip of status = loading. I was able to make it disappear by adding the following check:
if (typeof latestData !== 'undefined' && status === 'success') {
lastDataRef.current = latestData;
}
at
https://github.com/tannerlinsley/react-query/blob/b1b9ddc4961f029837ffc7b3c19af13ea3f040e1/src/usePaginatedQuery.js#L23-L25
I don't have much insight into the lib, but maybe this could help