elm-animator icon indicating copy to clipboard operation
elm-animator copied to clipboard

How to animate items removed from a lazy list

Open Erudition opened this issue 8 months ago • 0 comments

If I have a long list of e.g. to-dos, I want to use lazy for performance reasons. If I remove an item from that list, I want to use elm-animator so it doesn't just blink out of existence.

elm-animator requires wrapping all the relevant model values in a opaque type, whereas lazy requires that the arguments to each item's view are not only identical but also have the same pointer in memory.

What can we do to animate additions and removals from a list without re-rendering other items?

Erudition avatar Oct 27 '23 07:10 Erudition