Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(core): unregister onDestroy when observable errors in toSignal #61596

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

Closed
wants to merge 1 commit into from

Conversation

arturovt
Copy link
Contributor

The observable terminates immediately when error is called, and no further emissions or completion notifications occur. Thus, we have to remove the listener in both the error and complete notifications.

The observable terminates immediately when `error` is called, and no further emissions or completion notifications occur. Thus, we have to remove the listener in both the `error` and `complete` notifications.
@pullapprove pullapprove bot requested a review from alxhub May 21, 2025 21:44
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label May 21, 2025
@ngbot ngbot bot added this to the Backlog milestone May 21, 2025
@JeanMeche JeanMeche requested review from pkozlowski-opensource and removed request for alxhub May 21, 2025 23:48
@pkozlowski-opensource pkozlowski-opensource added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Jun 4, 2025
@kirjs
Copy link
Contributor

kirjs commented Jun 4, 2025

This PR was merged into the repository by commit f37b2f7.

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

@kirjs kirjs closed this in f37b2f7 Jun 4, 2025
kirjs pushed a commit that referenced this pull request Jun 4, 2025
#61596)

The observable terminates immediately when `error` is called, and no further emissions or completion notifications occur. Thus, we have to remove the listener in both the `error` and `complete` notifications.

PR Close #61596
@arturovt arturovt deleted the fix/to_signal-unregister branch June 4, 2025 14:58
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