Tenant-picker dropdown
Let multi-tenant users switch between their workspaces.
Why reload
Most apps cache data per tenant — orders, settings, dashboards. The simplest correct approach after a tenant switch is to dump the cache by reloading. If you're using TanStack Query, you can instead invalidate:
Server side
Make sure the useUser() hook surfaces a tenants[] field. The server's user.getSessionUserData hook is the place: