html-next / vertical-collection

Infinite Scroll and Occlusion at > 60FPS
https://html-next.github.io/vertical-collection/
MIT License
176 stars 77 forks source link

Bug: Updating deleted items #357

Open Atrue opened 2 years ago

Atrue commented 2 years ago

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.