Skip to content

Commit 238f2a8

Browse files
atscottthePunderWoman
authored andcommitted
fix(router): Clear internal transition when navigation finalizes (#54261)
This commit fixes a small memory issue in the router where a destroyed component instance would be retained. fixes #54241 PR Close #54261
1 parent 2de7679 commit 238f2a8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/router/src/navigation_transition.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ export class NavigationTransitions {
688688
// finalized.
689689
if (this.currentNavigation?.id === overallTransitionState.id) {
690690
this.currentNavigation = null;
691+
this.currentTransition = null;
691692
}
692693
}),
693694
catchError((e) => {

0 commit comments

Comments
 (0)