Skip to content
Discussion options

You must be logged in to vote
  1. are you aware that your query client is not stable? https://tkdodo.eu/blog/react-query-fa-qs#2-the-queryclient-is-not-stable
  2. are you sure your queryFn returns a rejected Promise? Why not just do: `() => Promise.reject(new Error("Error"))
  3. in tests, you pretty likely want to turn off retries or it will time out: https://tkdodo.eu/blog/testing-react-query#turn-off-retries

Replies: 1 comment

Comment options

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