Replies: 2 comments 6 replies
-
We're facing a similar problem. We have a list that uses useInfiniteQuery and we have some use cases where we need to invalidate only one of the pages. In v4, we used invalidateQueries and, with refetchPage, we compared the index of the page returned with the index of the page we wanted to fetch and only returned true if it matched. Something like:
Since this option has been removed in v5, how am I supposed to get the same behavior? |
Beta Was this translation helpful? Give feedback.
-
I'd still refetch everything but let the
I think we could make this a bit easier on our end by passing more information into the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As for v5 there is no more way to refetch last page of infinite query.
Option we've been given instead does the other thing than giving the ability to refetch last page of query - i dont want to limit amount of pages.
Our logic implies that entities in the feed can be changed, but only for the case when it is the last entiry. Given functionality is not achievable with new version, or i've missed something?
Beta Was this translation helpful? Give feedback.
All reactions