useActiveTenancy
TheuseActiveTenancy hook combines session state with membership lists and returns the active organization and workspace memberships.
Return Value
Whether tenancy resolution is still loading.
Active organization membership for the current signin.
Active workspace membership for the current signin.
Example
Related
- useSession - Access current session data
- useOrganizationMemberships - List organization memberships
- useWorkspaceMemberships - List workspace memberships
