Skip to content
Discussion options

You must be logged in to vote

It's a bit odd i know, but is a kind-of-authorization flow with the first request is given an error and the next request (this one that "resolves" the authorization) return the result of the first. So my solution was something like "hold" error state of the first request, make the second, and resolve or reject in case of a new error, the first one. I make this with another library (digging the code and use undocumented features) so was think in addressing this first before "full switch" to react-query.

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@TkDodo
Comment options

@bruno-vinicius
Comment options

@bruno-vinicius
Comment options

@TkDodo
Comment options

@bruno-vinicius
Comment options

Answer selected by bruno-vinicius
Comment options

You must be logged in to vote
0 replies
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