Replies: 1 comment 1 reply
-
call |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I have a use case where I pull data via an infinite query. When data becomes stale or mutates, I want to reset the query so I can refetch the 1st page. We don't want to refetch all pages because the data set could be huge. I understand I can do a query refetch but refetch will refetch all pages. And if I set the max pages, it breaks the pages and limits the new data set to the number of max pages which is counter intuitive. My solution is I do resetQueries. However, that clears the data to initial state so my component clears. From a user experience, we should be resetting or refetching (kind of in the background) and the reset happens when the new data comes through. Any thoughts? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions