From b627403a2c595dcf96daadbc00378f40a9b97d91 Mon Sep 17 00:00:00 2001 From: Kars Blom Date: Thu, 26 Nov 2020 15:07:50 +0100 Subject: [PATCH] Clear all outletKeys instead of only the first --- nativescript-angular/router/page-router-outlet.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nativescript-angular/router/page-router-outlet.ts b/nativescript-angular/router/page-router-outlet.ts index 879378732..76456fe10 100644 --- a/nativescript-angular/router/page-router-outlet.ts +++ b/nativescript-angular/router/page-router-outlet.ts @@ -329,7 +329,9 @@ export class PageRouterOutlet implements OnDestroy { const clearCallback = () => setTimeout(() => { if (this.outlet) { - this.routeReuseStrategy.clearCache(this.outlet.outletKeys[0]); + this.outlet.outletKeys.forEach((outletKey) => { + this.routeReuseStrategy.clearCache(outletKey); + }); } });