Invalidating infinite query leads to deleted pages from the cache #8456
-
I have an infinite query setup like so for messages relating to a particular chat:
Within an realtime event handler, I receieve a delete event and call invalidate queries like so: Is there a way I can keep previously loaded pages in the cache until the refetch for these particular pages(caused by invalidateQueries) completes. I assumed |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
sounds like fetching the second page maybe fails? we had a bug around that, which was recently fixed, so make sure you’re on the latest version. |
Beta Was this translation helpful? Give feedback.
-
Fixed this particular issue after updating, thanks TkDodo |
Beta Was this translation helpful? Give feedback.
Fixed this particular issue after updating, thanks TkDodo