machty / ember-concurrency

ember-concurrency is an Ember Addon that enables you to write concise, worry-free, cancelable, restartable, asynchronous tasks.
http://ember-concurrency.com
MIT License
690 stars 157 forks source link

Tasks with same name, in different components, get overwritten #349

Closed tpetrone closed 4 years ago

tpetrone commented 4 years ago

Steps to reproduce

What I am seeing:

What I expected:

In other words, the last component rendered is overwriting the task of the first one when both tasks have the exact same declaration. I.e.:

component 1
   uploadFile: task(function * (file) {...}
component 2
   uploadFile: task(function * (file) {...}

Is this an expected behavior?


tpetrone commented 4 years ago

I take it back. Further investigation elucidated that the problem was, in fact, related to how I was invoking ember-file-upload built-in component

Somehow related to: https://github.com/adopted-ember-addons/ember-file-upload/issues/173