-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
feature / enhancementNew feature or requestNew feature or requestservice workerStuff related to service workersStuff related to service workers
Milestone
Description
Describe the problem
With #3412, SvelteKit can detect when new versions of the app have been deployed. It would be useful if the service worker was updated when that happens, if one exists.
Describe the proposed solution
Inside the code that checks for updates, something like this:
const registration = await navigator.serviceWorker.getRegistration(base || '/');
if (registration) {
registration.update();
}Alternatives considered
No response
Importance
nice to have
Additional Information
No response
jycouet, leonhma, kamiro, Rican7 and hyunbinseo
Metadata
Metadata
Assignees
Labels
feature / enhancementNew feature or requestNew feature or requestservice workerStuff related to service workersStuff related to service workers