@tinkoff/router 0.1.69 → 0.1.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -953,6 +953,15 @@ class Router extends ClientRouter {
953
953
  if (this.currentNavigation) {
954
954
  return this.delayNavigation(navigation);
955
955
  }
956
+ // ignore previous navigations that were put in delayedNavigation as we have more fresh navigation to execute
957
+ if (this.delayedNavigation) {
958
+ logger.info({
959
+ event: 'delay-navigation-drop',
960
+ delayedNavigation: this.delayedNavigation,
961
+ navigation,
962
+ });
963
+ this.delayedNavigation = null;
964
+ }
956
965
  return this.flattenDelayedNavigation(navigation);
957
966
  }
958
967
  delayNavigation(navigation) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinkoff/router",
3
- "version": "0.1.69",
3
+ "version": "0.1.70",
4
4
  "description": "router",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",