http-request-manager 18.13.29 → 18.13.30
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.
|
@@ -6200,6 +6200,7 @@ class QueryParamsTrackerService {
|
|
|
6200
6200
|
constructor() {
|
|
6201
6201
|
this.state = { paths: {} };
|
|
6202
6202
|
this.stateRestored = false;
|
|
6203
|
+
this.restoreInProgress = false;
|
|
6203
6204
|
this.localStorageManager = inject(LocalStorageManagerService);
|
|
6204
6205
|
}
|
|
6205
6206
|
clearTracking(resetSessionInit = false) {
|
|
@@ -6451,10 +6452,10 @@ class QueryParamsTrackerService {
|
|
|
6451
6452
|
return this.state.paths[pathKey];
|
|
6452
6453
|
}
|
|
6453
6454
|
ensureStateRestored() {
|
|
6454
|
-
if (this.stateRestored) {
|
|
6455
|
+
if (this.stateRestored || this.restoreInProgress) {
|
|
6455
6456
|
return;
|
|
6456
6457
|
}
|
|
6457
|
-
this.
|
|
6458
|
+
this.restoreInProgress = true;
|
|
6458
6459
|
this.restoreState();
|
|
6459
6460
|
}
|
|
6460
6461
|
restoreState() {
|
|
@@ -6465,12 +6466,17 @@ class QueryParamsTrackerService {
|
|
|
6465
6466
|
if (this.isTrackerState(storedState)) {
|
|
6466
6467
|
this.state = QueryTrackerStateModel.adapt(storedState);
|
|
6467
6468
|
this.cleanupExpiredEntries();
|
|
6468
|
-
return;
|
|
6469
6469
|
}
|
|
6470
|
-
|
|
6470
|
+
else {
|
|
6471
|
+
this.state = { paths: {} };
|
|
6472
|
+
}
|
|
6473
|
+
this.stateRestored = true;
|
|
6474
|
+
this.restoreInProgress = false;
|
|
6471
6475
|
},
|
|
6472
6476
|
error: () => {
|
|
6473
6477
|
this.state = { paths: {} };
|
|
6478
|
+
this.stateRestored = true;
|
|
6479
|
+
this.restoreInProgress = false;
|
|
6474
6480
|
}
|
|
6475
6481
|
});
|
|
6476
6482
|
}
|