We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c586c2 commit 115b40dCopy full SHA for 115b40d
packages/client/src/routes/+page.svelte
@@ -2,15 +2,14 @@
2
import { useAuth } from "@mmailaender/convex-auth-svelte/sveltekit";
3
import ChatApp from "$components/chat/ChatApp.svelte";
4
5
- const isAuthenticated = $derived(useAuth().isAuthenticated);
6
- const isLoading = $derived(useAuth().isLoading);
+ const auth = useAuth();
7
</script>
8
9
-{#if isLoading}
+{#if auth.isLoading}
10
<div class="flex h-screen w-full items-center justify-center">
11
<span class="loading loading-dots loading-lg"></span>
12
</div>
13
-{:else if isAuthenticated}
+{:else if auth.isAuthenticated}
14
<ChatApp />
15
{:else}
16
<div class="hero bg-base-100 min-h-screen">
0 commit comments