angular/packages
Andrew Scott 286b2807de fix(router): eagerly update internal state on browser-triggered navigations (#43102)
The management of `browserUrlTree` currently has several problems with
correctly tracking the actual state of the browser.

This change makes the Router eagerly update the `browserUrlTree` when
handling navigations triggered by browser events (i.e., not 'imperative'). This
is because with those types of navigations, the browser URL bar is
_already_ updated. If we do not update the internal tracking of the
`browserUrlTree`, we will be out of sync with the real URL if the
navigation is rejected.

It would be best if we could remove `browserUrlTree` completely, but doing that
would require a lot more investigation and is blocked by #27059 because
the SpyLocation used in tests does not emulate real browser behavior.

fixes #43101

PR Close #43102
2021-08-16 09:33:23 -07:00
..
animations refactor(animations): remove unused animation trigger imports (#42763) 2021-07-19 17:13:45 -07:00
bazel build: update all non-major dependencies (#42922) 2021-08-12 15:36:07 -07:00
benchpress refactor(benchpress): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:15 -07:00
common refactor(core): update peerDependencies to allow rxjs7 (#42991) 2021-08-02 13:55:01 -07:00
compiler refactor(compiler): fix lateron typo in i18n ExtractorHost (#43160) 2021-08-16 09:23:13 -07:00
compiler-cli refactor(compiler-cli): remove extra 'diagnostic' from readResource comment (#43147) 2021-08-16 09:23:39 -07:00
core fix(router): eagerly update internal state on browser-triggered navigations (#43102) 2021-08-16 09:33:23 -07:00
docs docs: remove/update broken links in resources appearing on aio (#42232) 2021-05-26 14:21:12 -07:00
elements refactor(core): update peerDependencies to allow rxjs7 (#42991) 2021-08-02 13:55:01 -07:00
examples feat(forms): allow minLength/maxLength validator to be bound to null (#42565) 2021-07-21 22:35:59 +00:00
forms feat(forms): Make Form Statuses use stricter types. (#42952) 2021-08-04 16:28:20 -07:00
language-service feat(language-service): auto-apply optional chaining on nullable symbol (#42995) 2021-08-12 09:23:21 -07:00
localize refactor(localize): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
misc/angular-in-memory-web-api refactor(core): update peerDependencies to allow rxjs7 (#42991) 2021-08-02 13:55:01 -07:00
platform-browser refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
platform-browser-dynamic refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
platform-server refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
private/testing docs: convert the last my-app components to app-root (#42256) 2021-05-25 22:13:36 +00:00
router fix(router): eagerly update internal state on browser-triggered navigations (#43102) 2021-08-16 09:33:23 -07:00
service-worker refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
upgrade refactor(upgrade): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:15 -07:00
zone.js ci: remove IE11 from the list of browsers used during CI (#43002) 2021-08-02 10:38:42 -07:00
BUILD.bazel build: remove unused no-strict tsconfig file (#42506) 2021-06-07 10:47:47 -07:00
circular-deps-test.conf.js fix(platform-webworker): remove platform-webworker and platform-webworker-dynamic (#38846) 2020-09-30 09:13:59 -04:00
empty.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
goog.d.ts refactor(core): replace references to goog.LOCALE with goog.getLocale() (#43089) 2021-08-10 10:35:26 -07:00
license-banner.txt docs: update year (#40925) 2021-02-22 12:37:40 -08:00
README.md
system.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tsconfig-build.json build: enable noImplicitOverride in project (#42512) 2021-07-12 13:11:14 -07:00
tsconfig-legacy-saucelabs.json build: enable noImplicitOverride in project (#42512) 2021-07-12 13:11:14 -07:00
tsconfig-test.json
tsconfig.json build: enable noImplicitOverride in project (#42512) 2021-07-12 13:11:14 -07:00
types.d.ts build: replace @types/trusted-types dep with minimal type defs (#39211) 2020-10-15 09:08:00 -07: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