How to clear ember store record entry which is uncomitted


#1

how to clear ember store record entry which is uncomitted? I tried using _this.get(“store”).unloadRecord(attribute).But with this change , the application in chrome freezes.Unable to use ember inspector. I am using ember 2.9 version


#2

Really it’s the same process as destroying a record that IS saved. I usually just do record.destroyRecord(). I would avoid using any of the store.unload methods unless you really need to.


#3

You’d use destroyRecord for uncommitted records. deleteRecord is the normal one for when a record is already saved. It does a delete request to the API.