-
Notifications
You must be signed in to change notification settings - Fork 1k
[@lit-labs/react] support custom events #2445
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
Conversation
🦋 Changeset detectedLatest commit: 7d6412f The changes in this PR will be included in the next version bump. 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
Resultslit-element-list
render
update
update-reflect
lit-html-kitchen-sink
render
update
nop-update
lit-html-repeat
render
update
lit-html-template-heavy
render
update
reactive-element-list
render
update
update-reflect
|
dfda940 to
12f4d04
Compare
This reverts commit 12f4d04.
|
this PR is ready for another review :) |
|
So what is the result of this? That you can instead accept |
|
@WickyNilliams Yes :) Currently a user could extend an event like you pointed out (probably a more durable typing). This PR would allow someone to provide an event listener and a custom event listener. |
|
Component properties now reflect in the react component props through the props map. |
sorvell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like there are some stylistic changes in this PR that aren't directly related to fixing the core issue of typing the event arguments. Please separate those changes into a separate PR and focus this PR exclusively to fixing the referenced issue. That will make it easier to review. Thanks.
taylor-vann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lots of changes, needs another look
|
@sorvell I can make another PR that's no problem |
|
@justinfagnani @sorvell |
|
closing for: #2648 2648 |
In regards to issue #2129
Allow Custom Events to be passed as arguments in event listeners.