Post

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?

To be clear, this does not have to do with when the query refetches, the query would refetch and update both when the shortest staleTime had passed and options would dictate it (mount, window focus, network reconnect).

Actually, if a new component mounts with has a separate staleTime that is higher and has not passed yet, but an old visible component has a low staleTime that HAS passed, should the query refetch on mount? (Does today, but should it?)

I think I’m wrong, I don’t think this would refetch today(?). I think we have some thinga to figure out. 😅

0 reposts1 like

No replies yet.