Uncaught Error: Unauthenticated at handler
Every time I do logout with the Clerk
<UserButton /> I get this error:Uncaught Error: Unauthenticated at handler.It happens in one screen where I'm making a query, what I imagine it happens is that in Signout I lost the session, and the query is there trying to fetch data, and it fails, but I'll expect the redirect to happen first. Is there a way to fix this?
This is my Provider:
This error happens too when I stop the server, run it again, and reload. And if I reload the page once more it works. supper weird.
Any recommendations are appreciated, thanks.
