-
-
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
DS.Model.destroyRecord does not unload record from store #5006
Comments
Related issue: #4972 |
This is still an issue in [email protected] I just hit exactly the same problem with exactly the same scenario as described in the first post.
But still got error |
I checked the unloadRecod() as follows:
and realised it does not unload destroyed record and therefore I unloaded my record using:
and it worked. I'm sure this hack is not the good way of doing it, but it works till the right solution is proposed! |
This should be re-examined following the landing of #5378 |
#5455 is in-progress to address this; however, semantics and teardown timing issues around getting |
Scenario:
Expectation:
This should work no problem, memberA and memberB should be different records, that have the same 'name'
Reality:
I believe what's happening is that
destroyRecord
is not unloading the internalModel, and therefore upon creation throwing this errorOn closer inspection, it does seem that
store._removeFromIdMap
andinternalModel.destroy
only get called from theunload
methodIt is unclear from the docs whether destroyRecord also removes internal references
The text was updated successfully, but these errors were encountered: