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
This is the query that holds the current user's profile. isAuthenticated is a synchronous call that checks to see if we have a user token.
For some reason, in the react-query devtools window, this query shows as stale immediately. I really don't see what I'm doing differently with this one. Any suggestions for debugging this?
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
-
I've configured react-query with infinite stale time, like this:
Most of my queries appropriately never go stale, except one, my 'profile' query:
This is the query that holds the current user's profile.
isAuthenticated
is a synchronous call that checks to see if we have a user token.For some reason, in the react-query devtools window, this query shows as stale immediately. I really don't see what I'm doing differently with this one. Any suggestions for debugging this?
Beta Was this translation helpful? Give feedback.
All reactions