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
Is it safe to just add another safeguard for fetchMore? If so, I can submit simple PR. However, I don't have enough knowledge to write test for it, if they're required.
Version
apollo-client@2.3.1
The text was updated successfully, but these errors were encountered:
doomsower
changed the title
Error when unmounting query while doing refetch
Error when unmounting query while fetchMore is in flight
May 16, 2018
Intended outcome:
No errors are thrown.
Actual outcome:
Apollo-client throws error:
How to reproduce the issue:
For me it's possible to get stable reproduction in my app by following this steps:
fetchMore
fetchMore
is in flight, unmount component with queryWhen looking at code that throws, I can see that there's no safeguard on this line:
However, a few lines above there's a safeguard:
Is it safe to just add another safeguard for fetchMore? If so, I can submit simple PR. However, I don't have enough knowledge to write test for it, if they're required.
Version
The text was updated successfully, but these errors were encountered: