Skip to content
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

[Bug?] ObservableQuery#refetch no longer rejects on error #524

Closed

Conversation

nevir
Copy link
Contributor

@nevir nevir commented Aug 10, 2016

(This is just a failing test; not a fix)


Current behavior: refetch() returns data: undefined and does not reject if the underlying request fails, or has errors.

It used to reject (sometime in 0.4.x, but unsure when this changed), and that behavior was definitely helpful for responding to errors (and displaying UI when the user makes an explicit request for data)

Current behavior: `refetch()` returns `data: undefined` and does not reject if the underlying request fails, or has errors.

It would be ideal if it were to reject, IMO.  For example, using `refetch` via `react-apollo` on a pull to refresh, and knowing when to display something to the user indicating error.
@stubailo
Copy link
Contributor

@nevir thanks for filing this. We didn't get to it so long because it turns out there were a lot of related issues. I think I got to them all in #781, I think there is more work to do to make the error system sane, though.

@stubailo stubailo closed this Oct 15, 2016
@nevir
Copy link
Contributor Author

nevir commented Oct 17, 2016

👍 thanks!

@nevir nevir deleted the nevir/refetch-rejections branch October 17, 2016 21:22
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants