Ignore networkError for cancelled call
See original GitHub issueI am using apollo 3.3.0 in my react app and when a user comes to the page login
and then immediately logout
or change page the component will be unmounted in the meanwhile the calls which are fetching data will be cancelled. once they are cancelled I am getting an networkError failed to fetch. this is annyoing is there a way to avoid this issue
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Javascript "TypeError: cancelled" error when calling "fetch" on ...
This will give the dreaded TypeError: cancelled ... const ignoreErrors = [ 'TypeError: NetworkError when attempting to fetch resource.
Read more >Handling operation errors - Apollo GraphQL Docs
When a network error occurs, Apollo Client adds it to the error.networkError field returned by your useQuery call (or whichever operation hook you...
Read more >What Does "Cancelled Call" Mean on FaceTime? - ITGeared
A cancelled FaceTime call can occur due to various reasons. It could be the recipient didn't pick up the call or rejected answering...
Read more >Request cancelled vs network failure (error.nserror) · Issue #570
i am dependent on the error.nserror to inform me of whether the operation is cancelled, or it is a network failure.
Read more >What Does Cancelled Call Mean On iPhone? A Useful Guide
Has their phone on silent and they can't hear it ring. Is ignoring you. Is unable to take calls due to their location,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jcreighton okay will give a codesandbox so you can take a look at it
@UmangThapliyal I can’t tell from the written example what is happening, whether it’s an expected error or not. A reproduction would be a good idea.