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

Wrap query promise with RSVP promise #141

Merged
merged 1 commit into from
Jul 7, 2018

Conversation

josemarluedke
Copy link
Member

When using apollo.query(... directly (no watchQuery), if there is an error from the API that causes the promise to be rejected, the apollo service would throw an error promise.finally is not a function.

The problem is that query was returning a native promise, which does not have the method finally, others function are wrapped with a RSVP promise but not thequery.

Unfortunately, I wasn't able to reproduce the problem in the test env to be able to write a test case for this. Open to suggestions.

Copy link
Member

@bgentry bgentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bgentry bgentry merged commit f28988f into ember-graphql:master Jul 7, 2018
@josemarluedke
Copy link
Member Author

@bgentry Do you mind releasing a new version containing this? Thanks.

@bgentry
Copy link
Member

bgentry commented Jul 12, 2018

Published v1.0.2 ✌️

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.

2 participants