Zum Hauptinhalt springen

Update flow (silent + idle toast, no auto skipWaiting)

Generated from pattern-library/registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: PWA · Tier: light · Maturity: proven (verified 2026-08-20 @ 1a130d67) · Risk: low — UI prompt only, no forced reload

A pending service-worker update rides the next client-side navigation silently, or for navigation-less sessions surfaces one persistent reload toast after 30 minutes, and never auto-activates with skipWaiting().

When to use: Use when rolling out a new service-worker version without disrupting an in-progress user session.

Docs

Code

  • src/lib/components/shell/UpdatePrompt.svelte (GitHub · GitLab)

Proof


Machine-readable record: pwa-update-flow in pattern-library/registry.json.

← Back to Pattern Library

Geht dieses Pattern noch besser? Sag uns, wie.

Feedback geben