useQuery queryFn function not triggered immediately when the query is stale after component re-evaluation #6386
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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