-
Notifications
You must be signed in to change notification settings - Fork 27k
fix(zone.js): support addEventListener with signal option. #49595
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
ff8c0b6 to
63daf54
Compare
63daf54 to
3001611
Compare
DavidANeil
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.
I think this design isn't satisfactory (if this were merged, I would probably patch it back to my "just backoff entirely when a signal is passed in" mode).
But I think it is better than the status quo, so I am approving for the sake of incremental improvement.
1a45a55 to
8a51837
Compare
|
I believe you've fixed the memory leaks, so this is looking good. I'm still not sure if something can be done about |
Close #49591
Currently
zone.jsdoesn't support thesignaloption, this PR allows the user to use AbortContoller to remove the event listener.