Skip to content

refactor(router): Add handling for empty observables in guards - #63546

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

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

Conversation

@atscott

@atscott atscott commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

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.

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.
@atscott
atscott requested a review from mmalerba September 2, 2025 13:33
@atscott atscott added the target: major This PR is targeted for the next major release label Sep 2, 2025
@ngbot ngbot Bot added this to the Backlog milestone Sep 2, 2025
@atscott atscott added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Sep 2, 2025
@atscott

atscott commented Sep 2, 2025

Copy link
Copy Markdown
Contributor Author

caretaker note: This path is not used in g3 yet so presubmit won't be useful

@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Sep 2, 2025
@mmalerba

mmalerba commented Sep 2, 2025

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 4c36659 Sep 2, 2025
@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 Oct 3, 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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note 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