I have a list of items. I have functions to change the order of the items in the list and a function to filter out items based on certain conditions.
The order function works as it should.
If I use a “regular” ngFor everything works as expected. When using a virtualScroll list I’m having issues when the filter makes the list empty. In that case the view won’t update.
I have created a plunker to demonstrate the issue.
Thanks in advance for input.
Disclaimer: I am new at typescript and ionic, so it’s very likely something I did wrong.
Hi,
That’s a bug. While the last entry of the VirtualScroll array will be deleted, the object won’t update so that it will remain until refresh. I had the same problem and used ngFor instead, however I’m afraid it lacks performance vs. VirtualScroll.