8000 fix(core): async EventEmitter error should not prevent stability by arturovt · Pull Request #61028 · angular/angular · GitHub
[go: up one dir, main page]

Skip to content

fix(core): async EventEmitter error should not prevent stability #61028

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 p 8000 rivacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

arturovt
Copy link
Contributor

This commit wraps the fn invocation with try-finally, ensuring that the pending task (added in this commit) is always removed.

Prior to this commit, if a subscriber threw an error, it would prevent the application from becoming stable — though this shouldn't happen under normal scenarios because the error should be handled by the RxJS error handler or Angular's error handler.

Errors should not silently prevent the application from being rendered on the server.

@pullapprove pullapprove bot requested a review from kirjs April 28, 2025 17:56
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Apr 28, 2025
@ngbot ngbot bot added this to the Backlog milestone Apr 28, 2025
@arturovt arturovt force-pushed the fix/core-async-event-emitter-stability branch from 8f81fb4 to edd01de Compare April 28, 2025 18:13
@atscott atscott added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Apr 28, 2025
@atscott
Copy link
Contributor
atscott commented Apr 28, 2025

@arturovt The new test is failing on CI

@arturovt
Copy link
Contributor Author

Ah this test passes in the browser, but throws that error in afterAll...

This commit wraps the `fn` invocation with `try-finally`, ensuring that the pending task (added in [this commit](angular@d5c6ee4)) is always removed.

Prior to this commit, if a subscriber threw an error, it would prevent the application from becoming stable — though this shouldn't happen under normal scenarios because the error should be handled by the RxJS error handler or Angular's error handler.

Errors should not silently prevent the application from being rendered on the server.
@arturovt arturovt force-pushed the fix/core-async-event-emitter-stability branch from edd01de to 67fad9a Compare April 29, 2025 07:48
Copy link
Contributor
@kirjs kirjs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed-for: fw-general

@mmalerba
Copy link
Contributor

This PR was merged into the repository by commit 8d82a39.

The changes were merged into the following branches: main, 19.2.x

mmalerba pushed a commit that referenced this pull request Apr 30, 2025
)

This commit wraps the `fn` invocation with `try-finally`, ensuring that the pending task (added in [this commit](d5c6ee4)) is always removed.

Prior to this commit, if a subscriber threw an error, it would prevent the application from becoming stable — though this shouldn't happen under normal scenarios because the error should be handled by the RxJS error handler or Angular's error handler.

Errors should not silently prevent the application from being rendered on the server.

PR Close #61028
@mmalerba mmalerba closed this in 8d82a39 Apr 30, 2025
@arturovt arturovt deleted the fix/core-async-event-emitter-stability branch April 30, 2025 07:23
thePunderWoman added a commit to thePunderWoman/angular that referenced this pull request Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0