Skip to content

Auto refresh after addon build completes#398

Merged
Gaurav0 merged 3 commits intoember-cli:masterfrom
Gaurav0:auto_refresh
Apr 13, 2016
Merged

Auto refresh after addon build completes#398
Gaurav0 merged 3 commits intoember-cli:masterfrom
Gaurav0:auto_refresh

Conversation

@Gaurav0
Copy link
Copy Markdown
Contributor

@Gaurav0 Gaurav0 commented Apr 13, 2016

using power of ember-concurrency

Comment thread app/services/dependency-resolver.js Outdated
addonPromises[name] = this.resolveAddon(name, value);
const taskInstance = this.get('resolveAddonsTask').perform(addons, dependencies);
return taskInstance.then(() => {
return RSVP.resolve(task.value);
Copy link
Copy Markdown
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
Copy Markdown
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