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
But when the component is re-evaluated the fetchPosts is not executed immediately once the query posts is stale, It is executed again when some extra time has passed, can you tell me why?
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I started recently with react query and I have seen something that caught my eye.
We have defined this code at the beginning of the component:
But when the component is re-evaluated the fetchPosts is not executed immediately once the query posts is stale, It is executed again when some extra time has passed, can you tell me why?
Beta Was this translation helpful? Give feedback.
All reactions