Using latest ember and ember-data.
I have a single-page application with a list of items, and the ability to open the items in tabs. I can edit the items in the open tabs, and without commiting the dirty record, go back to the list.
If I refresh the list, I get the error:
Error: Attempted to handle event loadedData on <> while in state rootState.loaded.updated.uncommitted
This is of course because I have done a App.TestObject.find()
in the list, and still have the dirty uncommitted records (opened and edited records in tabs).
My goal is to show the list with updated records, but do nothing with the uncommited records. I do not want to do a rollback on the uncommited records. Is there a best practice for this?
This is a similar question, but I do not want the records reverted to original state. This is a similar case with a fiddle, but here the rollback is the right solution.
How can I solve the fiddle if I wanted to ignore the uncommitted records when I go back to the list?