GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — fix(angular): Remove `afterSendEvent` listener once root injector is destroyed by arturovt · Pull Request #12786 · getsentry/sentry-javascript Conversation
Contributor
In this commit, we added cleanup logic to handle the removal of
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Lms24
reviewed
|
| describe('opens the report dialog if `showDialog` is true', () => { |
(Just a heads-up: I'm only assigning myself to the PR for internal tracking since I'm reviewing it)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
afterSendEvent listener once root injector is destroyedafterSendEvent listener once root injector is destroyed
Small optimization using the new hook cleanup capabilities to remove unused hooks. Ref PR to do this in angular: #12786
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I added some tests to cover the cleanup logic since I had some time and I think we should get this out sooner than later.
Thanks for contributing once again ❤️
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…destroyed In this commit, we added cleanup logic to handle the removal of `afterSendEvent`, which is set up within the Angular error handler. This fixes memory leaks that occur when the event is still being handled after the root view is removed.
This PR adds the external contributor to the CHANGELOG.md file, so that they are credited for their contribution. See #12786 --------- Co-authored-by: Lms24 <[email protected]> Co-authored-by: Andrei Borza <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.