You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i fell comfused about the final config when i use multiple useQuery with the same queryKey
I just look the source code of your excellent react-query, i get some conclusion refreshInterval: use the min of all queryInstance cachetime, staletime and so on: use the value of first useQuery's config refetchOnWindowFocus will use the last useQuery's config
what's the principle when you decide the final config?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
i fell comfused about the final config when i use multiple useQuery with the same queryKey
I just look the source code of your excellent react-query, i get some conclusion
refreshInterval
: use the min of all queryInstancecachetime
,staletime
and so on: use the value of first useQuery's configrefetchOnWindowFocus
will use the last useQuery's configwhat's the principle when you decide the final config?
Beta Was this translation helpful? Give feedback.
All reactions