title: React Query useInfiniteQuery invalidate individual items
body: <p>How can I invalidate a single item when working with useInfiniteQuery?
  Here is an example that demonstrates what I am trying to accomplish.</p>
  <p>Let`s say I have a list of members and each member has a follow button. When I press on to follow button, there is a separate call to the server to mark that the given user is following another user. After this, I have to invalidate the entire infinite query to reflect the state of following for a single member. That means I might have a lot of users loaded in infinite query and I need to re-fetch all the items that were already loaded just to reflect the change for one item.</p>
  <p>I know I can change the value in queryClient.setQueryData when follow fetch returns success but without following this with invalidation and fetch of a member, I am basically going out of sync with the server and relying on local data.</p>
  <p>Any possible ways to address this issue?</p>
  <p>Here is a reference UI photo just in case if it will be helpful.</p>
  <p><a href="https://i.stack.imgur.com/P4gc1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/P4gc1.png" alt="enter image description here" /></a></p>