This is for an issue reported to ember-data here: emberjs/data#5731
The tests/unit/nested-computed-test.js file shows the issue.
The computed dependencies:
- Message.people
- Message.recipientsById
- Message.recipients.[]
- Message.group.people.[]
- Message.recipientsById
In Ember and Ember Data 3.5.0, an update to add a new groupMember to the Group does not result in Message.people updating. In 2.18 the update did occur, the test passes.
You will need the following things properly installed on your computer.
- Git
- Node.js (with npm)
- Ember CLI
- Google Chrome
git clone <repository-url>
this repositorycd ember-data-chained-computed
npm install
ember serve
- Visit your app at http://localhost:4200.
- Visit your tests at http://localhost:4200/tests.
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
npm run lint:hbs
npm run lint:js
npm run lint:js -- --fix
ember build
(development)ember build --environment production
(production)
Specify what it takes to deploy your app.