[Bug] 2.3.2 broke `observes` modifier
See original GitHub issue🐞 Bug description
With the latest version of ember-concurrency
the observes modifier stopped working.
import Model, { attr } from '@ember-data/model';
import { inject as service } from '@ember/service';
import { task } from 'ember-concurrency';
export default class Parking extends Model {
@service store;
@attr('array', { defaultValue: () => [] }) carIds;
// This tasks should perform everytime `cardIds` changes.
@task({
observes: 'carIds.[]',
drop: true,
})
*loadCarsTask() {
// ...
}
}
import Component from '@glimmer/component';
import { action, set } from '@ember/object';
export default class ParkingBox extends Component {
@action
onCarChange(cars) {
const { parking } = this.args;
const cardIds = cars.map(({ id }) => parseInt(id));
set(parking, 'cardIds', cardIds);
}
}
😕 Actual Behavior
loadCarsTask
isn’t performing when carIds
changes.
🤔 Expected Behavior
loadCarsTask
should perform everytime cardIds
changes.
🌍 Environment
- ember-concurrency
2.3.2
- ember-source
4.6.0
- ember-data
4.2.0
Issue Analytics
- State:
- Created a year ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug :1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance to users, ... and dev-java/lucene-analyzers-2.3.2 builds broken" status:RESOLVED ...
Read more >Full Text Bug Listing - Red Hat Bugzilla
Hardware Environment: Software Environment: This bug report was opened specifically to submit the patch included in LTC Bug 1631 to Red Hat.
Read more >ember-concurrency/CHANGELOG.md at master - GitHub
Implemented a public API for Task Modifiers, providing a way for users to define additional modifiers and behavior in application code. (#441) Please...
Read more >Release Notes | Veertu's Anka Documentation
Bug Fix: anka registry pull would under certain conditions throw ZeroDivisionError: ... This results in a broken VM. ... 2.3.2 (2.3.2.125) - Jan...
Read more >The Bugzilla Guide - 3.0.3 Release - MELCOR
This is the documentation for Bugzilla, a bug-tracking system from ... 2.3.2. Dependency Charts. As well as the text-based dependency trees ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@esbanarango Yes, I think it is probably not a good idea for us to try and fix this for the new API as it would add further complexity to the EC codebase to accommodate a deprecated pattern.
Fixed in v2.3.4