-
-
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
unloadRecord destroys manyArray #4835
Comments
surely the many array is the bit that's using RAM so we do want to destroy it on unload? |
@BryanCrotaz I believe in this case when a single belongsTo is unloaded, it destroys any |
Ah that's a Bad Thing. |
although when the last belongsTo is unloaded, this should happen |
@BryanCrotaz well it should become empty, but the hasMany should stick around until it's record is unloaded/destroyed |
This was resolved by #5273 and other more recent fixes to the relationship layer. |
see https://github.com/emberjs/data/blob/master/addon/-private/system/relationships/state/has-many.js#L59-L65
presumably the right behaviour is to issue a change event for that index and then call it a day.
cc @stefanpenner @igorT
The text was updated successfully, but these errors were encountered: