-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
peekRecord() not working as expected #4985
Comments
@denchen the deletion has not been persisted yet. record.destroyRecord.then(() => {
store.hasRecordForId('model-name', id);
}) |
@hjdivad wouldn't the |
The record is in the |
I believe this has been cleaned up, but we should confirm. |
@rwjblue @bmac I can't test the previous twiddle against ember-data canary, because of this error:
Something wrong with the external import ? must we add @runspired So I tested the twiddle against beta, and the destroyed record is still in the store. (unloadRecord works btw) |
Closing in favor of #5006 which is a duplicate: TL;DR destroyed records are not unloaded automatically. |
I'm having an issue with
peekRecord()
, and I'm hoping I'm just not understanding how it works.Basically, I have a record that I want to destroy, but after I destroy it and then use
peekRecord()
on it, I still see the record. Is this expected? In essence, I'm doing this:I'm using ember-cli 2.12.3.
The text was updated successfully, but these errors were encountered: