isPending true even when query is not enabled #7329
Unanswered
simrunbuttar
asked this question in
Q&A
Replies: 1 comment
-
Basically from the docs, if I want to ensure query.data is valid and is based on being enabled, what should be used? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I had a question, I'm using react-query with conditional enabling of a query.
I've confirmed that my query is not enabled, but when I have my check for isPending, I see that it is
I've checked that type === B when doing this, but still when doing:
query.isPending is true and Loading is returned -- why would that be the case? We recently migrated from v4 to v5 so this used to be isLoading
Beta Was this translation helpful? Give feedback.
All reactions