Best way to poll for new data and merge with cache?
Basically, I have an expensive query that I want to make more efficient by only fetching new data based on an
updateTime field that lives on every document, and then merging that in with existing data in the cache.
This feels like something ReactQuery would handle natively, but it doesn't seem like it does. Am I missing something? Is there a way to do this "natively" or a more efficient approach?
I asked this over on StackOverflow (https://stackoverflow.com/questions/77368878/how-to-efficiently-poll-for-data-with-react-query) with example code and more details, but then I noticed this lovely Discord channel.Stack Overflow
How to Efficiently Poll for Data with React Query
I have a database collection that can be updated by a large number of users in real-time. Users need to be able to see updates from other members, but the collection is large, so re-downloading the
0 Replies