ARTICLE AD BOX
The project uses Ember.js and ember-concurrency.
Template code:
<form {{action (perform signinTask) on='submit'}} > ... </form>Component code:
signinTask: task(function* () { ... try { yield this.get('session').authenticate('authenticator:api', { identification: email, password, }); this.get('metrics').trackEvent({ // this code email, // is event: 'Log in', // never }); // executed } catch (error) { ... } }).restartable(),The problem is that the code after yield is never executed. How can I fix it?
