@ethlete/core 1.8.1 → 1.8.2
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.
|
@@ -1030,7 +1030,7 @@ const routerDisableScrollTop = (config = {}) => {
|
|
|
1030
1030
|
};
|
|
1031
1031
|
class RouterStateService {
|
|
1032
1032
|
get route$() {
|
|
1033
|
-
return this._route$.asObservable();
|
|
1033
|
+
return this._route$.asObservable().pipe(distinctUntilChanged());
|
|
1034
1034
|
}
|
|
1035
1035
|
get state$() {
|
|
1036
1036
|
return this._state$.asObservable();
|
|
@@ -1110,13 +1110,13 @@ class RouterStateService {
|
|
|
1110
1110
|
});
|
|
1111
1111
|
}
|
|
1112
1112
|
selectQueryParam(key) {
|
|
1113
|
-
return this._state$.pipe(map((state) => state.queryParams[key]));
|
|
1113
|
+
return this._state$.pipe(map((state) => state.queryParams[key]), distinctUntilChanged());
|
|
1114
1114
|
}
|
|
1115
1115
|
selectPathParam(key) {
|
|
1116
|
-
return this._state$.pipe(map((state) => state.pathParams[key]));
|
|
1116
|
+
return this._state$.pipe(map((state) => state.pathParams[key]), distinctUntilChanged());
|
|
1117
1117
|
}
|
|
1118
1118
|
selectData(key) {
|
|
1119
|
-
return this._state$.pipe(map((state) => state.data[key]));
|
|
1119
|
+
return this._state$.pipe(map((state) => state.data[key]), distinctUntilChanged((a, b) => equal(a, b)));
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
1122
|
RouterStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: RouterStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|