Skip to content

Commit

Permalink
sveltekit: use navigating from $app/state
Browse files Browse the repository at this point in the history
  • Loading branch information
while1618 committed Dec 22, 2024
1 parent d5f8dd2 commit 2375897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/svelte-kit/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { navigating } from '$app/stores';
import { navigating } from '$app/state';
import { PUBLIC_APP_NAME } from '$env/static/public';
import GuestNavbar from '$lib/components/navbar/guest-navbar.svelte';
import UserNavbar from '$lib/components/navbar/user-navbar.svelte';
Expand All @@ -24,7 +24,7 @@
</svelte:head>

<ParaglideJS {i18n}>
{#if $navigating}
{#if navigating.complete}
<Loading />
{:else if data.profile}
<UserNavbar isAdmin={data.isAdmin} />
Expand Down

0 comments on commit 2375897

Please sign in to comment.