Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

After update from Ember 3.26.x to 3.28.11 model.deleteRecord() method does not change model.hasDirtyAttributes

$
0
0

We want to update our application till the latest 4.x version, but first need to update to latest 3.x version and fix all deprecations.

After update Ember from 3.26.x to 3.28.11 and Ember-Data from 3.26.x to 3.28.12, the model.deleteRecord() method does not change model.hasDirtyAttributes to be equal true. I have checked the docs and did not find that logic changed, but it did :face_with_monocle:

We have a huge application and lot of code relies on logic, that deleting a record makes its hasDirtyAttributes property equal to true, instead of it remains false. I should mention that model.isDeleted becomes equal to true after call to model.deleteRecord().

Is it expected behaviour?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles