-
Notifications
You must be signed in to change notification settings - Fork 394
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
perf(template-compiler): static-optimize on event listener object #4468
Conversation
ce175cc
to
7e0e6b7
Compare
Thanks a bunch for this PR!! Just wanted to let you know what we're a little slammed, but I will take a look this week. ๐ |
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.
This is looking really great in general! Most of the snapshots look exactly right, and the Karma tests are still passing.
The only issue I found is the edge case of binding to variables defined within for:each
loops. We need to handle those so that re-defining the event listeners works correctly (see comment above).
I also added some quick snapshot tests just to confirm that the entire on
object is memoized when there are multiple event listeners on the same element.
Thanks a bunch for this PR!! Much appreciated. ๐
Also, this PR seems to have just nudged us below the 95% target code coverage threshold. Opened a PR that should hopefully help bump it back up: #4482 |
@nolanlawson the test in #4480 is very helpful. Thanks! PS: I copied here in order to validate locally since it wasn't merged yet. |
074abba
to
7044028
Compare
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.
Looking great to me. I'd just love to see another Karma test added and then I'd say
We should get #4480 merged first to avoid merge conflicts.
Thank you very much!! ๐
/nucleus test |
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.
Thank you!
/nucleus test |
Co-authored-by: Nolan Lawson <nolan@nolanlawson.com>
Co-authored-by: Nolan Lawson <nolan@nolanlawson.com>
Co-authored-by: Nolan Lawson <nolan@nolanlawson.com>
aa4ff48
to
9b3ae82
Compare
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.
@nolanlawson here's the test for listeners with mixed local & non-local scopes in a single element.
I'll need to send my computer for repair this week, so please take over if I missed anything.
Thank you!
/nucleus test |
Thanks again! This is fantastic work. ๐ฅ |
Details
I'm still getting familiar with the codebase. Hopefully this makes sense. ๐ค
Closes #4467
Does this pull request introduce a breaking change?
Does this pull request introduce an observable change?
GUS work item
W-16535749