ng-falcor
ng-falcor copied to clipboard
Removing item from list cause visual glitch
We ran into an issue while removing an item from a list.
Indeed, invalidating all indices following the removed item cause a visual glitch.
Is-it something your library can help with?
What is your approach to remove an item from a list?
I've seen this too. Not sure yet what the ideal solution is. I'm open to suggestions.
As a workaround you could try invalidating the list at the beginning every time the controller runs. Then when an item is removed, maintain a set of deleted indices on the controller, in order to know which items are removed. Then you can either hide those items, or display a "deleted" message on them. The next time the view loads, the invalidation will happen and everything will start over fresh.