()
| 166 | * Hook to fetch all organizations |
| 167 | */ |
| 168 | export function useOrganizations() { |
| 169 | return useQuery({ |
| 170 | queryKey: organizationKeys.lists(), |
| 171 | queryFn: ({ signal }) => fetchOrganizations(signal), |
| 172 | staleTime: 30 * 1000, |
| 173 | }) |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Fetch a specific organization by ID. |
no test coverage detected