Documentation useQuery
and guide disabling-queries
are not clear
#8536
-
In my opinion, the documentation is not clear about the status if the query has been disabled: https://tanstack.com/query/latest/docs/framework/react/guides/disabling-queries states in the second bullet point:
On the other side, https://tanstack.com/query/latest/docs/framework/react/reference/useQuery says in its return section about the different states:
Can someone clear this up, or define how it should be? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
After testing this I can confirm:
|
Beta Was this translation helpful? Give feedback.
After testing this I can confirm:
initialData
is provided, or if it set toundefined
, the query will be inpending
state untilenabled
is set totrue
.initialData
is provided, then the query will be insuccess
state immediately, even ifenabled
is stillfalse