Trying 1500ms pre-load delay

This commit is contained in:
softsimon
2022-08-28 20:52:48 +02:00
parent 448d073bf2
commit b7662347c9

View File

@@ -4,7 +4,7 @@ import { Observable, timer, mergeMap, of } from 'rxjs';
export class AppPreloadingStrategy implements PreloadingStrategy {
preload(route: Route, load: Function): Observable<any> {
return route.data && route.data.preload
? timer(800).pipe(mergeMap(() => load()))
? timer(1500).pipe(mergeMap(() => load()))
: of(null);
}
}