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

fix: gracefully handle null/undefined with watchQuery(..., resultKey) #170

Merged
merged 1 commit into from Sep 19, 2018

Conversation

lennyburdette
Copy link
Contributor

If the server returns { data: null, errors: [] } and you supply a resultKey argument to watchQuery, you'll get an error in newDataFunc.

If the server returns `{ data: null, errors: [] }` *and* you supply a `resultKey` argument to watchQuery, you'll get an error in `newDataFunc`.
@bgentry bgentry merged commit 3d5bc8c into ember-graphql:master Sep 19, 2018
@bgentry
Copy link
Member

bgentry commented Sep 19, 2018

Thanks @lennyburdette! FYI this will be going into the v2.0 beta release

@lennyburdette
Copy link
Contributor Author

Thanks for the quick response! I’ll test out the beta today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants