diff --git a/.changeset/ensure-sw-refresh.md b/.changeset/ensure-sw-refresh.md new file mode 100644 index 000000000..45b3b8f0e --- /dev/null +++ b/.changeset/ensure-sw-refresh.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Ensure new updates always reload the page properly. diff --git a/src/index.tsx b/src/index.tsx index 1cd63692c..4f2e57245 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -54,9 +54,8 @@ if ('serviceWorker' in navigator) { if (window.confirm('A new version of the app is available. Refresh to update?')) { if (registration.waiting) { registration.waiting.postMessage({ type: 'SKIP_WAITING_AND_CLAIM' }); - } else { - window.location.reload(); } + window.location.reload(); } };