isLoading is not set to true when using invalidateQueries #5146
Unanswered
CedricCouton
asked this question in
General
Replies: 1 comment 1 reply
-
are you looking for |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi,
I want to detect the fact that the invalidateQueries has been called and behind the data are fetch to get fresh new data. In that case we don't have way to detect it. Indeed, the isLoading still false because this isLoading is based on the fact that there is no dataUpdatedAt. Also we could base on the isInvalidated of the query but it is not exposed in the QueryObserverBaseResult. Is there exist a way to detect it? Some idea :
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions