@ethlete/core 1.5.0 → 1.5.1
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.
|
@@ -1092,13 +1092,13 @@ class ViewportService {
|
|
|
1092
1092
|
this._isLg$ = new BehaviorSubject(false);
|
|
1093
1093
|
this._isXl$ = new BehaviorSubject(false);
|
|
1094
1094
|
this._is2Xl$ = new BehaviorSubject(false);
|
|
1095
|
-
this.currentViewport$ = combineLatest([this.isXs$, this.isSm$, this.isMd$, this.isLg$, this.isXl$, this.is2Xl$]).pipe(map((val) => this.getCurrentViewport(val)), shareReplay());
|
|
1095
|
+
this.currentViewport$ = combineLatest([this.isXs$, this.isSm$, this.isMd$, this.isLg$, this.isXl$, this.is2Xl$]).pipe(map((val) => this.getCurrentViewport(val)), shareReplay(1));
|
|
1096
1096
|
this._viewportConfig = _viewportConfig || DEFAULT_VIEWPORT_CONFIG;
|
|
1097
1097
|
this._observeDefaultBreakpoints();
|
|
1098
1098
|
}
|
|
1099
1099
|
observe(options) {
|
|
1100
1100
|
const mediaQuery = this._buildMediaQuery(options);
|
|
1101
|
-
return this._breakpointObserver.observe(mediaQuery).pipe(map((x) => x.matches), shareReplay());
|
|
1101
|
+
return this._breakpointObserver.observe(mediaQuery).pipe(map((x) => x.matches), shareReplay(1));
|
|
1102
1102
|
}
|
|
1103
1103
|
isMatched(options) {
|
|
1104
1104
|
const mediaQuery = this._buildMediaQuery(options);
|