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
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.
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.