Skip to content

refactor(router): Add firstValueFrom helper - #63485

Closed
atscott wants to merge 1 commit into
angular:mainfrom
atscott:firstvaluefrom
Closed

atscott wants to merge 1 commit into
angular:mainfrom
atscott:firstvaluefrom

Conversation

@atscott

@atscott atscott commented Aug 29, 2025

Copy link
Copy Markdown
Contributor

This fixes a bug introduced in #62994 where toPromise was used. This doesn't work in all situations here because some observables don't complete. This only affected the redirect path, since the others are already behind other rxjs code which takes the first value from the user guards.

Note: This is marked as a refactor rather than fix because the commit above is not in any release yet.

@atscott atscott added the target: major This PR is targeted for the next major release label Aug 29, 2025
@ngbot ngbot Bot added this to the Backlog milestone Aug 29, 2025
This fixes a bug introduced in angular#62994 where `toPromise` was used. This
doesn't work in all situations here because some observables don't
complete. This only affected the redirect path, since the others are
already behind other rxjs code which takes the first value from the user
guards.

Note: This is marked as a refactor rather than fix because the commit above is not in
any release yet.
@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Aug 29, 2025
@mmalerba

Copy link
Copy Markdown
Contributor

This PR was merged into the repository. The changes were merged into the following branches:

@mmalerba mmalerba closed this in bbb46e5 Aug 29, 2025
atscott added a commit to atscott/angular that referenced this pull request Sep 2, 2025
This fixes a bug introduced in angular#63485 where `firstValueFrom` was used. This
doesn't work in all situations here because some observables don't
emit before completing. These errors should result in the route matching
logic moving on to the next route.

Note: This is marked as a refactor rather than fix because the commit above is not in
any release yet.
mmalerba pushed a commit that referenced this pull request Sep 2, 2025
This fixes a bug introduced in #63485 where `firstValueFrom` was used. This
doesn't work in all situations here because some observables don't
emit before completing. These errors should result in the route matching
logic moving on to the next route.

Note: This is marked as a refactor rather than fix because the commit above is not in
any release yet.

PR Close #63546
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Sep 30, 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: router target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants