adopted-ember-addons / ember-data-model-fragments

Ember Data addon to support nested JSON documents
MIT License
370 stars 114 forks source link

fix(dirty state): fix dirtyness after save when using polymorphic fragment in some specific use case #437

Closed VincentMolinie closed 2 years ago

VincentMolinie commented 2 years ago

Some code was not updated. It seems _fragments has been replaced by fragments property but in some places we still use _fragments. The thing is when didCommit is called it use the _fragments to notify the nested attributes they were not dirty anymore