Closed jschuur closed 7 months ago
Possibly something to do with the jotai implementation that is used for the UserData state running in a server component?
See this backend error
Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044
Start with making the PartyKit
component 'use client'
I've wrapped everything in a jotai provider and explicitly made PartyKit
client component just in case. Hopefully the former should fix this issue.
Nope, bug is still happening.
When it does happen, the Account
component shows the profile image from useSession
data, so this seems to be a Next Auth issue.
Haven't seen or heard of this happen for about a day now.
Haven't seen this since the change to JWT sessions and move to an Edge specific config, so calling this fixed.
As demo'd by @tdrayson and Dr_DinoMight.