Files
angular__angular/packages
Andrew Scott 647afb02b3 refactor(router): Simplify the prioritizeGuardValue logic (#46745)
The existing logic does something similar but in a more roundabout way.
It reads _the whole array_. If it encounters a pending value, it ignores
the remaining ones. If it hasn't encountered a pending value by the time
it hits false/UrlTree, it returns that result.

The new logic is the same, but reverses what we're looking for. Instead
of processing the whole array, we stop when we encounter an initial
value. When we encounter one that isn't `true`, that gets returned. If
we get to the end and everything was `true`, return `true`.

PR Close #46745

PR Close #46745
2022-07-11 16:55:58 +00:00
..
2022-07-08 20:54:52 +00:00
2022-07-08 20:54:52 +00:00
2022-07-08 20:54:52 +00:00
2022-07-08 20:54:52 +00:00
2022-07-08 20:54:52 +00:00
2022-07-08 20:54:52 +00:00
2022-07-08 20:54:52 +00:00
…
…
…

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT