Skip to content

Commit 866a51d

Browse files
fix: use the updated technique
See sveltejs/kit#9089 (comment)
1 parent f970ad0 commit 866a51d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/routes/+layout.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { dev } from "$app/environment";
55
import { onNavigate } from "$app/navigation";
66
import { resolve } from "$app/paths";
7-
import { page } from "$app/state";
7+
import { page, updated } from "$app/state";
88
import { ChevronDown, type Icon, Monitor, Moon, Sun, X } from "@lucide/svelte";
99
import { ProgressBar } from "@prgm/sveltekit-progress-bar";
1010
import { ModeWatcher, resetMode, setMode } from "mode-watcher";
@@ -247,9 +247,9 @@
247247
{/if}
248248
</header>
249249

250-
<div class="container py-8">
250+
<main data-sveltekit-reload={updated.current ? "" : "off"} class="container py-8">
251251
{@render children?.()}
252-
</div>
252+
</main>
253253

254254
<footer class="mt-auto w-full border-t bg-background">
255255
<div class="mx-auto flex h-12 w-full items-center px-8">

0 commit comments

Comments
 (0)