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:
initialDatais provided, or if it set toundefined, the query will be inpendingstate untilenabledis set totrue.initialDatais provided, then the query will be insuccessstate immediately, even ifenabledis stillfalse