Title: fix(@angular/ssr): handle platform destruction during rendering by arturovt · Pull Request #32263 · angular/angular-cli · GitHub
Open Graph Title: fix(@angular/ssr): handle platform destruction during rendering by arturovt · Pull Request #32263 · angular/angular-cli
X Title: fix(@angular/ssr): handle platform destruction during rendering by arturovt · Pull Request #32263 · angular/angular-cli
Description: Fixes crash when platform/app destroys itself during the bootstrapping and stabilization phase. Previously, the code would call applicationRef.injector without checking if the platform was destroyed, resulting in: "Error: Injector has already been destroyed" This can occur when: Component constructor calls inject(PlatformRef).destroy() AbortSignal triggers during request handling APP_INITIALIZER rejects and causes cleanup Custom guard/resolver logic destroys the platform Solution: Check applicationRef.destroyed after whenStable() and return error state instead of accessing destroyed injector. Test: Added test case that destroys app in component constructor to verify graceful handling of this edge case.
Open Graph Description: Fixes crash when platform/app destroys itself during the bootstrapping and stabilization phase. Previously, the code would call applicationRef.injector without checking if the platform was destroye...
X Description: Fixes crash when platform/app destroys itself during the bootstrapping and stabilization phase. Previously, the code would call applicationRef.injector without checking if the platform was destroye...
Opengraph URL: https://github.com/angular/angular-cli/pull/32263
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:65899fa7-7cf2-ee59-7240-d01658804178 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A6EE:17146E:47DD1B8:61666C4:6964DDC0 |
| html-safe-nonce | 54717b7e80bc78adec46e7ec497caaa7c737d2fea151527d71dccecdc1ff805c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkVFOjE3MTQ2RTo0N0REMUI4OjYxNjY2QzQ6Njk2NEREQzAiLCJ2aXNpdG9yX2lkIjoiMjA1MzIwNjk0MDA3MjU5ODk3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fed8147214fc6613185d145008bac101fd7d046f5e6d4bca285e3a1a2edfdd28 |
| hovercard-subject-tag | pull_request:3162224913 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/angular/angular-cli/pull/32263/files |
| twitter:image | https://avatars.githubusercontent.com/u/7337691?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/7337691?s=400&v=4 |
| og:image:alt | Fixes crash when platform/app destroys itself during the bootstrapping and stabilization phase. Previously, the code would call applicationRef.injector without checking if the platform was destroye... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5838582163a1256e5ebd5086b7e1dc5cea93d82086c9c8b1395fb50f6ddab28d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8edad3509fd3b4374694551987974bbbcfd316c0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width