Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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
packages/core/src/event_emitter.ts Outdated Show resolved Hide resolved
@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
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.