useKindeAuth isLoading doesn't change to false
Trying to get the org in a client component, but
isLoading
does not change to false
.
What am I missing?
3 Replies
The auth hooks are asynchronous. If you wrap your console.log into a useEffect dependant on isLoading, it should change to false once it’s loaded.
They are async on the server, not the client.
I just realized that if I swap
useKindeAuth
with useKindeBrowserClient
then it works as expected. I'm wondering why useKindeAuth
is exported from @kinde-oss/kinde-auth-nextjs
, feels like it only causes confusion 🤔Ah sorry I assumed react.