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

Keyed Loops #236

Open
kbrsh opened this issue Jul 28, 2018 · 3 comments
Open

Keyed Loops #236

kbrsh opened this issue Jul 28, 2018 · 3 comments

Comments

@kbrsh
Copy link
Owner

kbrsh commented Jul 28, 2018

Loops need an option to be keyed in order to reorder components and preserve state.

@kbrsh
Copy link
Owner Author

kbrsh commented Apr 28, 2019

Closing because there is no local state in Moon v1.

@kbrsh kbrsh closed this as completed Apr 28, 2019
@ryansolid
Copy link

The reason for a library to implement keyed loops is to preserve DOM state rather than library state.

@kbrsh
Copy link
Owner Author

kbrsh commented Oct 12, 2020

Actually, Moon aimed to have mechanisms for storing DOM state directly within vnodes, moving the responsibility of maintaining DOM state to the developer (e.g. a focus prop). I realized that it wasn't exactly practical, so a keyed algorithm is back on the roadmap.

@kbrsh kbrsh reopened this Oct 12, 2020
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

2 participants