-
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
How to pass graphQLErrors to component? #2880
Comments
Any ideas on this? I spent the time updating to apollo 2.0, and this is the last missing piece. I hope I don't have to revert to 1.x =/ |
I'm having the same issue as this. Any updates? It looks like the error exists in the networkErrors but not in the graphQLErrors. |
To help provide a more clear separation between feature requests / discussions and bugs, and to help clean up the feature request / discussion backlog, Apollo Client feature requests / discussions are now being managed under the https://github.com/apollographql/apollo-feature-requests repository. This feature request / discussion will be closed here, but anyone interested in migrating this issue to the new repository (to make sure it stays active), can click here to start the migration process. This manual migration process is intended to help identify which of the older feature requests are still considered to be of value to the community. Thanks! |
I'm trying to set up apollo to handle 401 errors in my apollo react component. Here's what I have so far.
My setup looks something like the following. On a 401,
graphQLErrors
is populated within theonError
link. Good so far.However, when I receive the error in a react component,
graphQLErrors
is empty! Like so:Is there a way to pass the populated
graphQLErrors
array to the component? Thanks.Version
The text was updated successfully, but these errors were encountered: