-
I've run into an issue where I have an infinite scroll list backed by a Is there way around this? One solution I'm imagining is a flag that tells InfiniteQuery to not trigger rerender until all pages have been refetched. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I am not positive that this is what is happening / should be happening. When you have two pages in the cache, and you invalidate, what you should be seeing on screen is:
because react query doesn't remove any data from the cache, it just replaces the stale data with new data. So I'm not sure how content height would be affected by the refetches - unless of course different items are fetched that render differently. Can you provide a codesandbox reproduction? |
Beta Was this translation helpful? Give feedback.
I am not positive that this is what is happening / should be happening. When you have two pages in the cache, and you invalidate, what you should be seeing on screen is:
because react query doesn't remove any data from the cache, it just replaces the stale data with new data. So I'm not sure how content height would be affected by the refetches - unless of course different items are fetched that render differently.
Can you provide a codesandbox reproduction?