Wierd behaviour, isPending from useSession not triggering

const { data, isPending } = authClient.useSession();
console.log(isPending)

const { data, isPending } = authClient.useSession();
console.log(isPending)

Im using nextJS 15.2 isPending is always true (sometimes) , it doesn't change to false even after network request is done
3 Replies
bekacru
bekacru4w ago
https://discord.com/channels/1288403910284935179/1347511463597838336/1352553287559155722 check this incase if it's related. But if not, would really appreciate a poc so I can look into it.
Kabeer
KabeerOP4w ago
// Method 2: Using direct object methods - This works too
authClient.signIn(...);
authClient.useSession();
// Method 2: Using direct object methods - This works too
authClient.signIn(...);
authClient.useSession();
Im currently using this method across everywhere. But still same, (It still has reactivity issues)(Sometimes) i tried setting up a simple POC, But everything seem to be working fine (Couldn't replicate the issue) ill look into my codebase further, will update further if i find the cause
Dex
Dex2w ago
hey mate, did you ever work this out? im getting hydration issues from what i believe to be a similar issue

Did you find this page helpful?