Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to animate items removed from a lazy list #25

Open
Erudition opened this issue Oct 27, 2023 · 0 comments
Open

How to animate items removed from a lazy list #25

Erudition opened this issue Oct 27, 2023 · 0 comments

Comments

@Erudition
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant