If you have two useQuery with different staleTime, would you expect isStale returned from that useQuery to:
* Change individually as each staleTime passes?
* Change together when shortest staleTime has passed?
* Have access to both of the above as separate isGloballyStale/isLocallyStale?
* Change individually as each staleTime passes?
* Change together when shortest staleTime has passed?
* Have access to both of the above as separate isGloballyStale/isLocallyStale?
Comments
Can be important if you use isStale to show a manual refetch button etc though.
But Im unsure what to expect if you tried using the global queryClient to check whether or not the data is stale…
Local: Is it stale in this context?
Global: Is it stale in any context?