(id: string, options?: { enabled?: boolean })
| 7 | import { PRIMARY_DEFAULT_MODEL } from '@/lib/ai-gateway/models'; |
| 8 | |
| 9 | export 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 | |
| 26 | export function useOrganizationChildren(id: string) { |
| 27 | const trpc = useTRPC(); |
no outgoing calls
no test coverage detected