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
Hello everybody, i used "react-query" version "^3.39.2" also I can't update it.
My expectation is that after my api returns data for a given query key, that react-query won't hit my API again for that same query key for at least some period of time. I have tried setting cacheTime with no change in behavior. My API gets hit every time. I assume ,I must be doing something wrong. I call my queries in my SSR function ( getServerSideProps )
I have defined :
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
-
Hello everybody, i used "react-query" version "^3.39.2" also I can't update it.
My expectation is that after my api returns data for a given query key, that react-query won't hit my API again for that same query key for at least some period of time. I have tried setting cacheTime with no change in behavior. My API gets hit every time. I assume ,I must be doing something wrong. I call my queries in my SSR function ( getServerSideProps )
I have defined :
but in a minute when my data is fresh and don't become stale yet If I come back to this page it will refetch all my Apis. anyone know why it happen?
Thanks again for any assistance!
i also asked this question in stackoverflow and in reddit but no one answer me yet
Beta Was this translation helpful? Give feedback.
All reactions