How to know why a record is Dirty in ember data

ember-data, ember.js

Solution

Depending on which version of ember-data you're using (and, now, what you're using as an adapter) this could be different. The behavior changed in version 9. Before then, you could say `record.isDirtyBecause('belongsTo')` and if the record had been marked dirty because the `belongsTo` relationship had changed, it would return `true`. Now, due to some shifts in the responsibilities between Stores and Adapters, it's up to the Adapter to handle this.

If you still need this information in your adapter, it will be your responsibility to do any bookkeeping in the `dirtyRecordsForAttributeChange` hook described above.

Problem

is there a way to know why a record is in a dirty state in ember data, I mean what are the attributes and relations that has changed. I'm having isDirty = true after calling a findAll and I want to debug why this happens. Thanks a lot

Original source