◐ Shell
clean mode source ↗

fix(router): allow to return `UrlTree` from `CanMatchFn` by dimakuba · Pull Request #46455 · angular/angular

@dimakuba

Currently it's not possible to return plain UrlTree from CanMatchFn,
only wrapped UrlTree into Observable or Promise is allowed.
These changes allow to return UrlTree from CanMatchFn.

Currently it's not possible to return plain `UrlTree` from `CanMatchFn`,
only wrapped `UrlTree` into Observable or Promise is allowed.
These changes allow to return `UrlTree` from `CanMatchFn`.

atscott

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed-for: fw-router
reviewed-for: public-api

AndrewKushnir

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-for: public-api

jessicajaniuk

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed-for: public-api

@AndrewKushnir

This PR was merged into the repository by commit abe3759.

@angular-automatic-lock-bot

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.