How to tie a list of IDs with fetched data
Hi so on my app on the home page I want the user to see some status of a bunch of IDs they have subscribed/saved
2 Replies
eastern-cyanOP•3y ago
So currentky that list is given to the home page via a context, and they can remove/add as they please
Right now I was doing a parallel query with useQueries on this list
However if they only remove an id, it'll refetch everything, if I add 1 it'll refetch everything which is annoying, I want it to only do the relevant ones. What's the best way?
quickest-silver•3y ago
react-query will not refetch anything unless you invalidate a query after a mutation. If it refetches too much, it indicates that you are invalidating too wide