Use the latest ember data and ember data.
I have a one-page application with a list of items and the ability to open items in tabs. I can edit elements on open tabs and not make a dirty recording, return to the list.
If I update the list, I get an error message:
Error: Attempted to handle event loadedData on <> while in state rootState.loaded.updated.uncommitted
This, of course, is because I did App.TestObject.find()on the list and still have dirty uncommitted entries (open and edited entries on tabs).
My goal is to show a list with updated entries, but to do nothing with unregistered entries. I do not want to roll back unregistered entries. Is there any best practice for this?
This is a similar question , but I do not want the records to return to their original state.
This is a similar case with the violin , but here rollback is the right solution.
How can I solve the script if I want to ignore uncommitted entries when I return to the list?
source
share