Suggestion: Clarify that there can be only one retryExchange
in docs when calling createClient
.
#3348
Open
3 tasks done
Labels
documentation 📖
This needs to be documented but won't need code changes
Describe the bug
When calling
createClient
with anarray
ofexchanges
, if there are multipleretryExchanges
forerrors
, then an infinite loop is caused when an error is encountered.Screen.Recording.2023-07-27.at.2.27.23.PM.mov
Suggestion: The documents provide many great examples of
retryExchange
usage but it didn't seem to explain the caveat clearly that only one is allowed. Perhaps make this clearer in the documentation, or perhaps it is a bug or unintended consequence.Here is the doc page we followed...
https://formidable.com/open-source/urql/docs/advanced/retry-operations/
Would love to help if I can! We love the library!
What we tried
What ended up working, but we would like finer grained control by providing multiple error
retryExchanges
.Reproduction
https://github.com/urql-graphql/urql/tree/main/examples/with-retry
Urql version
Validations
The text was updated successfully, but these errors were encountered: