Skip to content

Request timeout / no network connection? #3373

Answered by kitten
getnashty asked this question in Q&A
Discussion options

You must be logged in to vote

There's some more links with more details here: https://formidable.com/open-source/urql/docs/architecture/#the-exchanges

but the gist of it is that the order of exchanges matters. Your operation enters the list of exchanges like a request would do in HTTP Middleware. Results are then passed backwards, in reverse order.

This means that no result will actually be received by the errorExchange you added in your snippet since it's after the fetchExchange rather than in front of it

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@getnashty
Comment options

Answer selected by JoviDeCroock
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