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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
weepa_ho3
weepa_ho3OP2mo ago
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
authClient.$store.notify('$activeOrgSignal');
authClient.$store.notify('$activeOrgSignal');
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?