mirror of
https://github.com/pupperpowell/bibdle.git
synced 2026-04-05 17:33:31 -04:00
correctly pass anonymousid to the auth modal in the root route
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
let { data }: { data: PageData } = $props();
|
||||
let authModalOpen = $state(false);
|
||||
let anonymousId = $state("");
|
||||
|
||||
let loading = $state(true);
|
||||
|
||||
@@ -39,6 +40,7 @@
|
||||
}
|
||||
|
||||
onMount(async () => {
|
||||
anonymousId = getOrCreateAnonymousId();
|
||||
loading = false;
|
||||
});
|
||||
|
||||
@@ -412,4 +414,4 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AuthModal bind:isOpen={authModalOpen} anonymousId="" />
|
||||
<AuthModal bind:isOpen={authModalOpen} {anonymousId} />
|
||||
|
||||
Reference in New Issue
Block a user