ng-falcor icon indicating copy to clipboard operation
ng-falcor copied to clipboard

Removing item from list cause visual glitch

Open jean-morissette opened this issue 9 years ago • 1 comments
trafficstars

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?

jean-morissette avatar May 18 '16 17:05 jean-morissette

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.

greim avatar May 18 '16 20:05 greim