Skip to content
Discussion options

You must be logged in to vote

I solved this, I switched to using swr and it error-ed out instead of loading permanently. That lead me to see that it is a CORS issue in the testing environment.

What I believe was happening is that react-query retried the query faster than the cypress timeout, but it doesn't make sense why there were so many retries and why the select was in a permanent loading state.

Also, cypress can somehow access the body of the request with wrong CORS, otherwise I don't understand how the checks passed.

Replies: 1 comment

Comment options

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