useQuery's isFetching vs isLoading #1929
Unanswered
gerhardsletten
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hope that explains the difference between the two flags. |
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.
-
After upgrading to v3 we experience that isFetching returned true in SSR render even though the the data was prefetched, and it created react hydration error because of difference between server and client render. Also checking for data fixed it:
But looking in the docs, there is now also a
isLoading
bool, and using that worked:Would expect that isFetching and isLoading should be equal.
Beta Was this translation helpful? Give feedback.
All reactions