Skip to content

Commit

Permalink
chore: add fix suggested in sveltejs/kit#9089
Browse files Browse the repository at this point in the history
  • Loading branch information
mandrasch committed May 10, 2023
1 parent 9880db2 commit 637215e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
<script>
import Header from './Header.svelte';
import './styles.css';
// Suggested here: https://github.com/sveltejs/kit/issues/9089
import { updated } from '$app/stores';
</script>



<div class="app">
<Header />

<main>
<main data-sveltekit-reload={$updated ? '' : 'off'}>
<slot />
</main>

Expand Down

0 comments on commit 637215e

Please sign in to comment.