@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.
- package/lib/index.browser.js +9 -0
- package/package.json +1 -1
package/lib/index.browser.js
CHANGED
|
@@ -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) {
|