Update active organization after creation
When a new organization is created, the active organization is updated in the database, but it is not refetched on the client.
Is this the intended behavior?
Is there a way to trigger the refetch?
3 Replies
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
That would also be my approach to solving this, but it feels a bit unclean. I looked at the example and was hoping that I had simply done something wrong, but unfortunately, it behaves the same way there.
I looked at the source code and it appears to me that the refetch should actually be triggered. @admin Do you perhaps know what might be wrong here?
@abt i got a better workaround. I call the refetch via the authClient after the success response
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View