Skip to content

Commit aac35ad

Browse files
committed
fix(router): navigation unresponsiveness
closes NativeScript#1484
1 parent 5e8c092 commit aac35ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: nativescript-angular/router/ns-location-strategy.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,8 @@ export class NSLocationStrategy extends LocationStrategy {
360360
// Changing the current outlet only if navigating in non-cached root outlet.
361361
if (!this.frameService.containsOutlet(name) && this.statesByOutlet[name] /* ensure root outlet exists */) {
362362
this.currentOutlet = name;
363+
this.frameService.addFrame(frame, name, this.currentOutlet);
363364
}
364-
365-
this.frameService.addFrame(frame, name, this.currentOutlet);
366365
}
367366

368367
const lastState = this.peekState(this.currentOutlet);

0 commit comments

Comments
 (0)