Skip to content

SignedIn Wrapper does not refresh on SignOutButton click #37

Open
@Hobbitive

Description

@Hobbitive

Step to Reproduce:

  1. Log in to app
  2. Click on SignOutButton
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions