Does anyone have any clear examples of implementing an “undo” pattern with Ember Data?
Is there a straightforward way to reset the state of a record after it is in the isDirty state? How do people manage the change events and undo history? Is there something built in to handle this? A glance at the API docs does not look like there is. And
reload is claimed to not work once a record isDirty.
Reload the record from the adapter.
This will only work if the record has already finished loading and has not yet been modified (isLoaded but not isDirty, or isSaving).
Using RESTful adapter.