Skip to content

Documentation useQuery and guide disabling-queries are not clear #8536

Discussion options

You must be logged in to vote

After testing this I can confirm:

  • If no initialData is provided, or if it set to undefined, the query will be in pending state until enabled is set to true.
  • If initialData is provided, then the query will be in success state immediately, even if enabled is still false

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SimonSimCity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants