Skip to content
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

Bug: Updating deleted items #357

Open
Atrue opened this issue May 23, 2022 · 0 comments
Open

Bug: Updating deleted items #357

Atrue opened this issue May 23, 2022 · 0 comments

Comments

@Atrue
Copy link
Contributor

Atrue commented May 23, 2022

After removing the item from the list the item's node can still exist in the virtual domPool element so its component isn't destroyed and can be updated by Ember.

This behavior isn't working for computed fields on the ember models. Ember rejects the error when trying to access the computed property on the destroyed object if it hasn't been consumed before.

Assertion Failed: Attempted to access the computed `computedProperty` on a destroyed object, which is not allowed.

Expected behavior: if the item is removed from the items list, this node shouldn't be updated or should be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant