-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SignedIn Wrapper does not refresh on SignOutButton click #37
Comments
If anyone will run accros this issue:
first you add callback to your SignOutButton and in the callback you call goto method to some non existing route for example '/sign-out'
|
Step to Reproduce:
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 needsThe text was updated successfully, but these errors were encountered: