-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Affordance for suppressing transient transport errors #270
Comments
I guess this means that Apollo Client should distinguish between network and application errors and react-apollo should distinguish between errors that require a component update and those that do not? |
I think the right thing to do here is:
This approach will work well if we assume that people don't want to be notified when a polling query encounters a network error. If they do want to be notified, we'll need to have an extra argument to polling queries. |
I think this is still a great idea, but the issue is quite old already. Let's continue discussion in #1210. |
When the network has occasional drop-outs, we might not care. It would be nice for Apollo client to be able to distinguish between transport and application errors so we could do some automatic retrying and error suppression. This is especially true of polling queries.
In the case of
react-apollo
, when we receive new props with an error, our data can disappear. The work-around is to do something like this:But that seems like unnecessary boilerplate for something that is a transient network event.
The text was updated successfully, but these errors were encountered: