Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

fix: Avoid handling promise rejections twice in stability helper#3657

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jamesdaniels merged 1 commit intoangular:mainfromatscott:pendingtasksadd
Jun 12, 2025

Conversation

@atscott
Copy link
Contributor

PendingTasks.run reports rejections of the promise to theErrorHandler. This function already returns a promise that is meant to be handled in the developer's application. If thereis handling there, the rejection is handled both in thePendingTasks.run and in the developer callsite.

This change updates the code to usePendingTasks.add instead, which has no built in error handling mechanisms.

fixesangular/angular#61932

LanderBeeuwsaert reacted with hooray emojiExac reacted with rocket emoji
`PendingTasks.run` reports rejections of the promise to the`ErrorHandler`. This function already returns a promise that is meant tobe handled in the developer's application. If there _is_ handling there,the rejection is handled both in the `PendingTasks.run` and in thedeveloper callsite.This change updates the code to use `PendingTasks.add` instead, whichhas no built in error handling mechanisms.fixesangular/angular#61932
@jamesdanielsjamesdaniels merged commiteb99d8e intoangular:mainJun 12, 2025
19 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jamesdanielsjamesdanielsjamesdaniels approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

@angular/fire and its use of PendingTasks.run causes promise rejections to be handled twice

2 participants

@atscott@jamesdaniels

[8]ページ先頭

©2009-2025 Movatter.jp