Skip to content

Commit

Permalink
fix: hydration warnings, see svecosystem/mode-watcher#95
Browse files Browse the repository at this point in the history
  • Loading branch information
krystlc committed Nov 29, 2024
1 parent 345ede8 commit 369243b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { invalidate } from '$app/navigation';
import { onMount } from 'svelte';
import { ModeWatcher } from 'mode-watcher';
import { isBrowser } from '@supabase/ssr';
export let data;
Expand All @@ -20,5 +21,7 @@
});
</script>

<ModeWatcher />
{#if isBrowser()}
<ModeWatcher />
{/if}
<slot />

0 comments on commit 369243b

Please sign in to comment.