Title: docs(service-worker): update docs to take the deprecations in #43535 into account · Issue #43665 · angular/angular · GitHub
Open Graph Title: docs(service-worker): update docs to take the deprecations in #43535 into account · Issue #43665 · angular/angular
X Title: docs(service-worker): update docs to take the deprecations in #43535 into account · Issue #43665 · angular/angular
Description: Description Once #43535 has been merged, we should update the Available and activated updates section of the Service worker communication guide (and the associated example) to not use the deprecated APIs. As part of this work, we should ...
Open Graph Description: Description Once #43535 has been merged, we should update the Available and activated updates section of the Service worker communication guide (and the associated example) to not use the deprecate...
X Description: Description Once #43535 has been merged, we should update the Available and activated updates section of the Service worker communication guide (and the associated example) to not use the deprecate...
Opengraph URL: https://github.com/angular/angular/issues/43665
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docs(service-worker): update docs to take the deprecations in #43535 into account","articleBody":"### Description\r\n\r\nOnce #43535 has been merged, we should update the [Available and activated updates][1] section of the [Service worker communication][2] guide (and the associated [example][3]) to not use the deprecated APIs.\r\n\r\nAs part of this work, we should also update [this code-snippet][4] to not be hard-coded.\r\n\r\n##\r\nFinally, while we're at it, we could also update the [prompt-update.service.ts][5], which shows reloading the page right after calling `SwUpdate#activateUpdate()`. This is a bad example, because just reloading the page should be enough to get a new client ID and get assigned to the latest SW version. (We should clarify that `SwUpdate#activateUpdate()` is only useful if you want to update a client without reloading and that it can easily lead to version skew, so should only be used if you know what you're doing and know it to be safe for your app.)\r\n\r\n[1]: https://angular.io/guide/service-worker-communications#available-and-activated-updates\r\n[2]: https://angular.io/guide/service-worker-communications\r\n[3]: https://github.com/angular/angular/tree/9d9d05911dbd6e2f30e4c7bced0e41fd20ec4285/aio/content/examples/service-worker-getting-started/src/app\r\n[4]: https://github.com/angular/angular/blob/0e9974969dc9dee964dcfeb6f8676b0e4ad20d73/packages/service-worker/src/update.ts#L44-L54\r\n[5]: https://github.com/angular/angular/blob/9d9d05911dbd6e2f30e4c7bced0e41fd20ec4285/aio/content/examples/service-worker-getting-started/src/app/prompt-update.service.ts#L15\r\n\r\n### What is the affected URL?\r\n\r\nhttps://angular.io/guide/service-worker-communications#available-and-activated-updates\r\n","author":{"url":"https://github.com/gkalpak","@type":"Person","name":"gkalpak"},"datePublished":"2021-10-01T12:50:56Z","url":"https://github.com/angular/angular/issues/43665"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a8dd3240-2af4-d2a1-e18c-aa01daa19e77 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1D4:1D20B7:E0822F:11B70E4:6B013F00 |
| html-safe-nonce | 96dc30f6f0a06670f0b27543f53ed381ce015a11fee67ae558dc8fdb35236eae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUQ0OjFEMjBCNzpFMDgyMkY6MTFCNzBFNDo2QjAxM0YwMCIsInZpc2l0b3JfaWQiOiIxMjc0OTkwMTQyMDE2Mjc0MTc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 641316b4b891484d33dd5acbacc420290c55b57dea59a1d651f458f0309bd0f5 |
| hovercard-subject-tag | issue:1013307094 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/angular/angular/43665/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9f6504efaa2229da260dc3ad5a21c413df0baa10059882a65fb468741f873603/angular/angular/issues/43665 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9f6504efaa2229da260dc3ad5a21c413df0baa10059882a65fb468741f873603/angular/angular/issues/43665 |
| og:image:alt | Description Once #43535 has been merged, we should update the Available and activated updates section of the Service worker communication guide (and the associated example) to not use the deprecate... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gkalpak |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width