-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Ember Data Model's errors field is not autotracked in 3.20 #19097
Comments
Note that it is |
Here is the link to the reproduction repo: https://github.com/andreyfel/ember-data-errors-autotracking-bug |
I've tested the fix emberjs/data#7273 in my app and it fixed the issue with appearing of the new error. Unfortunately, removing the error is not working :( |
@andreyfel I believe this issue can be closed now with |
@snewcomer Yes! Thanks! |
I'm updating Ember from 3.19 to 3.20 in my app and there is an issue which appeared after the update. I have a component which renders server errors for a certain field in the Ember Data model. In the component js it looks like this:
Then I just render these messages in the template:
If error comes after first render the component automatically re-rendered to show new errors.
It worked in Ember 3.19 but it doesn't work in Ember 3.20.
If I change it to computed by adding the following decorator it starts working in 3.20:
@computed('args.model.errors.[]')
The text was updated successfully, but these errors were encountered: