Skip to content

Conversation

@ealmloff
Copy link
Member

@ealmloff ealmloff commented Nov 17, 2025

Only the key attribute on the first root node matters, but we currently silently ignore keys on other nodes. This leads to confusing behavior like #4971. Instead of silently ignoring keys on other elements, this PR changes it to a warning

Alternatives:

  • We could accept keys on other nodes in the template. This makes it slightly harder to find keys if there are any

TODO:

  • Implement Diagnostic warnings on stable via deprecated structs

Fixes #4971

@ealmloff ealmloff added the rsx Related to rsx or the dioxus-rsx crate label Nov 17, 2025
@ealmloff ealmloff marked this pull request as ready for review November 17, 2025 19:41
@ealmloff ealmloff requested a review from a team as a code owner November 17, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rsx Related to rsx or the dioxus-rsx crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect Component State Preservation When Removing Items from List

1 participant