Skip to content

Conversation

rschristian
Copy link
Member

Credit to @alextompkins for the idea & impl, limits the observedAttributes array to known props on the component.

Because we don't allow users to set their own attributeChangedCallback, and because all changed attributes end up as props on the component, this seems like a pretty reasonable & safe change. Some folks could be watching arbitrary attributes that aren't declared as props on the component, and whilst not wrong per se, that does feel like a weird situation that it's okay to break.

@rschristian rschristian merged commit 5d77f39 into master Sep 12, 2025
1 check passed
@rschristian rschristian deleted the types/narrow-observed-attributes branch September 12, 2025 16:52
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

Successfully merging this pull request may close these issues.

2 participants