diff --git a/nativescript-angular/router/ns-route-reuse-strategy.ts b/nativescript-angular/router/ns-route-reuse-strategy.ts index e05179c4..dd966ada 100644 --- a/nativescript-angular/router/ns-route-reuse-strategy.ts +++ b/nativescript-angular/router/ns-route-reuse-strategy.ts @@ -12,6 +12,10 @@ interface CacheItem { } const getSnapshotKey = function (snapshot: ActivatedRouteSnapshot): string { + // https://github.com/angular/angular/issues/13869#issuecomment-344403045 + while (snapshot.firstChild) { + snapshot = snapshot.firstChild; + } return snapshot.pathFromRoot.join('->'); };