angular/packages/router/test/operators
Dmitrij Kuba c9679760b2 refactor(router): take only the first emitted value of every resolver to make it consistent with guards (#44573)
The router used to wait for the resolvers to complete and take the last
value. The changes here take only the first
emitted value of every resolver and proceed the navigation. This matches
how other guards work in the `Router` code.

Resolves https://github.com/angular/angular/issues/44643

BREAKING CHANGE: Previously, resolvers were waiting to be completed
before proceeding with the navigation and the Router would take the last
value emitted from the resolver.
The router now takes only the first emitted value by the resolvers
and then proceeds with navigation. This is now consistent with `Observables`
returned by other guards: only the first value is used.

PR Close #44573
2022-03-01 17:12:37 +00:00
..
prioritized_guard_value.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
resolve_data.spec.ts refactor(router): take only the first emitted value of every resolver to make it consistent with guards (#44573) 2022-03-01 17:12:37 +00:00