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

Auto refresh after addon build completes #398

Merged
merged 3 commits into from
Apr 13, 2016

Conversation

Gaurav0
Copy link
Contributor

@Gaurav0 Gaurav0 commented Apr 13, 2016

using power of ember-concurrency

addonPromises[name] = this.resolveAddon(name, value);
const taskInstance = this.get('resolveAddonsTask').perform(addons, dependencies);
return taskInstance.then(() => {
return RSVP.resolve(task.value);
Copy link
Member

Choose a reason for hiding this comment

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

task is an import (from ember-concurrency at the top of the file), and is a method AFAIK (not a thing with a .value property)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rwjblue You are correct, and it should be taskInstance.value. I was trying to figure out why it still works, and it turns out I never used this value in the then where I called resolveAddons. Thanks for reviewing!

@Gaurav0 Gaurav0 merged commit a91711f into ember-cli:master Apr 13, 2016
@Gaurav0 Gaurav0 deleted the auto_refresh branch April 13, 2016 17:35
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