Replies: 2 comments 3 replies
-
I have the exact use case, would like to see some solid solutions. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If there's no known way to accomplish this then I can turn this into an issue rather than a discussion for hopes of a feature request. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With useInifiniteQuery, currently if I have already loaded N pages, then calling refetch will result in N API calls to refetch all the data. I understand that this is by design.
For a react native app, I want a pull-from-top refresh to continue to display only the first page while it is refreshed, but remove all subsequent pages from the cache and not refetch them unless the fetchMore method is called again. Can we add a way to reset the number of loaded groups in the useInfiniteQuery cache data? I've tried using queryCache.setQueryData to delete all but the first group of data, but it's not sufficient as it still seems to know that more groups were previously fetched and then proceeds to refetch them.
Beta Was this translation helpful? Give feedback.
All reactions