Skip to content

Conversation

rschristian
Copy link
Member

@rschristian rschristian commented Sep 4, 2025

Closes #69
Supercedes #71

This is a bit of a bad one tbh.

#44 added this manual call of connectedCallback() upon the first time a property is set but this objectively the wrong behavior: that method is meant to only ever be called once and only upon insertion into the document. We're often calling it twice and prior to insertion.

This hopefully won't cause any problems for folks as it's internal-ish behavior, but even so, I'd want to push this out as a non-breaking change. It diverges from the web platform and expectations so greatly that this should be considered a mistake and not intended behavior, IMO.

#69 (comment) called this out, thanks!

@rschristian rschristian marked this pull request as draft September 4, 2025 00:36
@rschristian rschristian force-pushed the refactor/do-no-manually-trigger-connected-callback branch from fad26b8 to 20c0460 Compare September 4, 2025 00:59
@rschristian rschristian marked this pull request as ready for review September 4, 2025 01:04
@rschristian rschristian force-pushed the refactor/do-no-manually-trigger-connected-callback branch from 8f43e79 to ea58f97 Compare September 4, 2025 17:29
@rschristian rschristian merged commit 390021e into master Sep 4, 2025
1 check passed
@rschristian rschristian deleted the refactor/do-no-manually-trigger-connected-callback branch September 4, 2025 17:30
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.

It resets complex property to undefined when provided as second or later prop

2 participants