-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(multiple): use renderer for manually-bound events with options #30195
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
Updates the repo to Angular 19.1.0-next.3 since it includes some changes to the renderer that we need.
…ndings Adds a utility that we can use to bind events with options in a backwards-compatible way. It will be removed once we get to v20.
a19baa1
to
eda992d
Compare
eda992d
to
b749a8b
Compare
Switches all manually-bound event handlers that were passing options to go through the renderer.
b749a8b
to
c92253d
Compare
|
||
// Event options in `listen` are only supported in 19.1 and beyond. | ||
// We also allow 0.0.x, because that indicates a build at HEAD. | ||
if (major > 19 || (major === 19 && minor > 0) || (major === 0 && minor === 0)) { |
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.
seems like major >= 19 || (major === 0 && minor === 0)
should be sufficient?
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.
19.0.x doesn't have support for the config object in the renderer, only 19.1 and above.
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.
oh gotcha, I misread minor > 0
as minor >= 0
This is a second attempt at landing the changes from angular#30195. I've removed some of the riskier changes. Switches all manually-bound event handlers that were passing options to go through the renderer.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Switches all manually-bound event handlers that were passing options to go through the renderer.