How to show all data changes since the last commit in Ember data?

I know that the Ember data model has the isDirty attribute, but how can I use it to display a list of all changes / delta data since the last commit?

Tom Dale says ( listen until 36:44 ) mentioned that you can configure ( github , api ) or serializer ( github , api ) to do this. Can someone give me an example?

current research: I use a local storage adapter that adds stuff to the dirty kit , which I think may be what I want. It is located in the ember datastore , ember data adapter , ember data relationship changes . I am trying to understand how everything fits together to show data changes.

+4
source share
1 answer

If any help, Ember Data stores the new (unsaved) attribute values ​​in the hash of the _attributes model. This is pretty internal, although you can be careful with it - I would not recommend manipulating it directly.

0
source

Source: https://habr.com/ru/post/1488609/


All Articles