MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / useOrganizationWithMembers

Function useOrganizationWithMembers

apps/web/src/app/api/organizations/hooks.ts:9–24  ·  view source on GitHub ↗
(id: string, options?: { enabled?: boolean })

Source from the content-addressed store, hash-verified

7import { PRIMARY_DEFAULT_MODEL } from '@/lib/ai-gateway/models';
8
9export function useOrganizationWithMembers(id: string, options?: { enabled?: boolean }) {
10 const trpc = useTRPC();
11 return useQuery(
12 trpc.organizations.withMembers.queryOptions(
13 { organizationId: id },
14 {
15 ...options,
16 trpc: {
17 context: {
18 skipBatch: true,
19 },
20 },
21 }
22 )
23 );
24}
25
26export function useOrganizationChildren(id: string) {
27 const trpc = useTRPC();

Callers 15

GitHubIntegrationDetailsFunction · 0.90
OrganizationDashboardFunction · 0.90
OrganizationTrialWrapperFunction · 0.90
OrganizationAdminMembersFunction · 0.90
SeatUsageCardFunction · 0.90
OrganizationInfoCardFunction · 0.90
OrganizationCodeIndexingFunction · 0.90
OrganizationPageHeaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected