fix(router): prevent error handling when injector is destroyed (#59457) · angular/angular@e3da35e · GitHub
Skip to content

Commit e3da35e

Browse files
arturovtalxhub
authored andcommitted
fix(router): prevent error handling when injector is destroyed (#59457)
In this commit, we prevent error handling when the root injector is already destroyed. This may happen when the observable completes before emitting a value, which would trigger a `catchError` block that attempts to call `runInInjectionContext` on a destroyed injector. PR Close #59457
1 parent 1de822c commit e3da35e

2 files changed

Lines changed: 60 additions & 1 deletion

File tree

‎packages/router/src/navigation_transition.ts‎

Lines changed: 15 additions & 0 deletions

‎packages/router/test/integration.spec.ts‎

Lines changed: 45 additions & 1 deletion

0 commit comments

Comments
 (0)