Add a warning when binding this.requestUpdate to an event listener#4473
Add a warning when binding this.requestUpdate to an event listener#4473
Conversation
This is an uncommon use case to do in real code, but a reasonable thing to try when experimenting and debugging, so we want to help someone out with a warning here.
🦋 Changeset detectedLatest commit: a91e150 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📊 Tachometer Benchmark ResultsSummarynop-update
render
update
update-reflect
Resultsthis-change
render
update
update-reflect
this-change, tip-of-tree, previous-release
render
update
nop-update
this-change, tip-of-tree, previous-release
render
update
this-change, tip-of-tree, previous-release
render
update
update-reflect
|
|
The size of lit-html.js and lit-core.min.js are as expected. |
augustjk
left a comment
There was a problem hiding this comment.
Seems like a hyper specific case to be looking for, but I suppose there's no harm in adding just a dev mode warning.
Co-authored-by: Augustine Kim <augustinekim@google.com>
It is, but the check is easy, and the behavior was weird enough that it had me stumped for a bit. |
AndrewJakubowicz
left a comment
There was a problem hiding this comment.
This is very subtle. Nice!
This is an uncommon use case to do in real code, but a reasonable thing to try when experimenting and debugging, so we want to help someone out with a warning here.