useActiveMember hook not updating when organization switch happens.

In my system an user have multiple roles in multiple organizations, when I switch organization, I was expecting it get the current active member, and then I want to get role from it, and hide/show sidenav links based on members org roles. The problem is, if I print activeMember, it still print old member, even after I switch organization. Can you Redmond a solution to make it dynamic? const { data: activeMember } = authClient.useActiveMember(); Note: authClient.useActiveOrganization() hook works as expected when I switch org
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?