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
Polling when server is down clears out results #1210
Comments
@SachaG Thanks for pointing it out! That's probably never what the user wants, so we should change it. Luckily this shouldn't be hard to fix, all we need to do is ignore the result of a polling query if there is an error. |
@SachaG could you be a bit more specific? I tried to reproduce the issue but it works for me. When I stopped the GraphQL server, I got the |
It might be an issue with my app then… I'll close this until I can confirm this or give you more information. |
Would it be possible for you to reproduce this error with |
Sure, I'll see what I can do. |
It should no longer clear out results in react-apollo with apollographql/react-apollo#548. For other integrations I think they should do a similar thing. |
With polling enabled, I've noticed that if I shut down my dev server the next time polling triggers (and errors out), my query container doesn't return any results and all my data disappears. Is this the intended behavior? I'd have thought the old data would remain there?
The text was updated successfully, but these errors were encountered: