fix(core): check whether application is destroyed before printing hyd… · angular/angular@544b9ee · GitHub
Skip to content

Commit 544b9ee

Browse files
arturovtalxhub
authored andcommitted
fix(core): check whether application is destroyed before printing hydration stats (#59716)
In this commit, we check whether the application is destroyed before printing hydration stats. The application may be destroyed before it becomes stable, so when the `whenStableWithTimeout` resolves, the injector might already be in a destroyed state. As a result, calling `injector.get` would throw an error indicating that the injector has already been destroyed. PR Close #59716
1 parent 68dbaf5 commit 544b9ee

2 files changed

Lines changed: 76 additions & 7 deletions

File tree

‎packages/core/src/hydration/api.ts‎

Lines changed: 17 additions & 7 deletions

‎packages/platform-server/test/full_app_hydration_spec.ts‎

Lines changed: 59 additions & 0 deletions

0 commit comments

Comments
 (0)