clerk-sveltekit
clerk-sveltekit copied to clipboard
SignedIn Wrapper does not refresh on SignOutButton click
Step to Reproduce:
- Log in to app
- Click on SignOutButton
- All of elements putted into SignedIn wrapper still appear on the page till manual refresh on page
I am not sure if this is my implementation or just a bug If its not a bug i would appreciate some help
<ClerkLoaded> <SignedOut> <li class="px-4 first:py-0 last:py-0"> <a href={Paths.signIn} on:click={handleNavStatus} > Sign in </a> </li> </SignedOut> <SignedIn > <li class="px-4 first:py-0 last:py-0"> <SignOutButton /> </li> </SignedIn> </ClerkLoaded>
this code is from component that is being rendered in +layout.svelte
I've tried doing onclicks with goto, location.reload, nothing seems to help with it
The only possible solution is to use <UserButton />
but it doesnt suit my needs