import { useQuery } from '@tanstack/react-query'; import { getDirectSymbiosis } from '@/services/matching-api.ts'; import type { DirectSymbiosisResponse } from '@/services/matching-api.ts'; /** * Get direct symbiosis matches for an organization * Returns empty arrays immediately to prevent blocking render */ export function useDirectSymbiosis(orgId: string | undefined) { return useQuery({ queryKey: ['directSymbiosis', orgId], queryFn: () => getDirectSymbiosis(orgId!), enabled: !!orgId, placeholderData: { providers: [], consumers: [] }, // Render immediately with empty arrays }); }