@dereekb/dbx-core 9.5.4 → 9.5.5
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.
|
@@ -2482,7 +2482,7 @@ function isLatestSuccessfulRoute(config) {
|
|
|
2482
2482
|
const { dbxRouterTransitionService, dbxRouterService, activeExactly } = config;
|
|
2483
2483
|
const routes = asArray(config.routes);
|
|
2484
2484
|
const checkRoute = activeExactly ? (route) => dbxRouterService.isActiveExactly(route) : (route) => dbxRouterService.isActive(route);
|
|
2485
|
-
return successTransition(dbxRouterTransitionService.transitions$).pipe(map(() => {
|
|
2485
|
+
return successTransition(dbxRouterTransitionService.transitions$).pipe(startWith(undefined), map(() => {
|
|
2486
2486
|
const isActive = routes.findIndex(checkRoute) !== -1;
|
|
2487
2487
|
return isActive;
|
|
2488
2488
|
}), distinctUntilChanged(), shareReplay(1));
|