- this.serverService.getConfig().subscribe(
- config => {
- const trendingDays = config.trending.videos.intervalDays
+ // Subscribe to alg change after we loaded the data
+ // The initial alg load is handled by the parent class
+ this.algorithmChangeSub = this.onDataSubject
+ .pipe(
+ first(),
+ switchMap(() => this.route.queryParams)
+ ).subscribe(queryParams => {
+ const oldSort = this.sort