graphql-flutter
graphql-flutter copied to clipboard
Pass NextLink to retry request with ErrorLink
Recently, ErrorLink feature is added The apollo lib also pass NextLink for retries. Which is needed for retrying the request on token expiration, which is quite common. See the relevant doc
In the PR @jayjun mentioned about it
Sure, I like the idea. Having said that, ErrorResponse also contains the relevant Operation and FetchResult (and also a NextLink for retries but in hindsight, should be left out since I didn’t implement that).
But, it looks like we just need to pass it with ErrorResponse see
It would be great to have NextLink passed through ErrorResponse