RJR
Convex Community2y ago
6 replies
RJ

Reactive queries firing after Clerk sign-out

I've noticed for a while that when a user logs out of my application (say by clicking a Clerk "Sign out" button), reactive queries which they were subscribed to at the time execute before the parent component which checks for auth is re-rendered, but without UserIdentity data, meaning that such queries then throw an error.

I'm using the <AuthLoading>, <Unauthenticated />, and <Authenticated> helpers, but this nonetheless occurs in reactive queries that are children of <Authenticated>.

Is this at all a known issue? Or any ideas about why this might be occurring/how to fix it?
Was this page helpful?