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

Remove "move" concept by synthesizing reused-removes + adds #2469

Open
JakeWharton opened this issue Nov 20, 2024 · 0 comments
Open

Remove "move" concept by synthesizing reused-removes + adds #2469

JakeWharton opened this issue Nov 20, 2024 · 0 comments

Comments

@JakeWharton
Copy link
Collaborator

With #1902, we will have the ability to remove nodes and add them elsewhere without recreation. Thus, all moves can be synthesized as removes and adds. Since these are exceedingly rare in our experience, it may be worth removing them as a concept altogether.

At the very least, we can make it a default implementation on Widget.Children so that in places where we can efficiently perform moves you still can, but in the case where it's hard or impossible (e.g., our current LazyList design) you don't have to worry about it.

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

No branches or pull requests

1 participant