(orgId: string)
| 239 | * Hook to fetch organization subscription |
| 240 | */ |
| 241 | export function useOrganizationSubscription(orgId: string) { |
| 242 | return useQuery({ |
| 243 | queryKey: organizationKeys.subscription(orgId), |
| 244 | queryFn: ({ signal }) => fetchOrganizationSubscription(orgId, signal), |
| 245 | enabled: !!orgId, |
| 246 | retry: false, |
| 247 | staleTime: 30 * 1000, |
| 248 | placeholderData: keepPreviousData, |
| 249 | }) |
| 250 | } |
| 251 | |
| 252 | /** |
| 253 | * Fetch organization billing data |
nothing calls this directly
no test coverage detected