You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
I'm guessing this has to do with the fact that inline functions are recreated on every render.
This makes it very easy to work around the issue if you are using class components. If you are using a functional component, you could possibly get around the issue by memoizing your onError and onCompleted functions.
Intended outcome:
onError should be called once per failed request
Actual outcome:
onError is called multiple times
How to reproduce the issue:
https://codesandbox.io/s/onerror-gets-called-many-times-v301-nzucv
This was supposed to be fixed by #3339, but I am still seeing
onError
get called multiple times for a single error.Version
@apollo/react-components: 3.0.1
@apollo/react-hooks: 3.0.1
apollo-cache-inmemory: 1.6.3
apollo-client: 2.6.4
apollo-link-http: 1.5.15
The text was updated successfully, but these errors were encountered: