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

Rerendering List Replaces First ListItem #307

Open
cwarden opened this issue Feb 29, 2024 · 1 comment
Open

Rerendering List Replaces First ListItem #307

cwarden opened this issue Feb 29, 2024 · 1 comment

Comments

@cwarden
Copy link

cwarden commented Feb 29, 2024

When a List is rerendered, the first listitem is replaced. If it has focus, it loses focus. The other listitems don't have this problem.

Here's an example using the todomvc application.

vecty-rerender-list-bug

@cwarden
Copy link
Author

cwarden commented Feb 29, 2024

I don't understand the code yet, but the problem appears to be in reconcileChildren, in which stableKey doesn't get set.

36a9ad6 "fixes" the issue.

cwarden added a commit to octoberswimmer/masc that referenced this issue Mar 8, 2024
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