apollo-link
apollo-link copied to clipboard
Using onError function and still error appears in console
Expected Behavior
All errors should pass through the function and then decide what to do with it
Actual Behavior All errors is passing through the function but is still showing in the console without calling the console.log function
A simple reproduction Implement the onError function on ApolloClient and generate an error watching the console
Most probably error is logged in the next link
you're using in your ApolloClient setup. If you want to skip logging, you should null
ify response.errors
https://www.apollographql.com/docs/react/v3.0-beta/data/error-handling/#ignoring-errors