(enabled = true)
| 271 | * Hook to fetch storage info |
| 272 | */ |
| 273 | export function useStorageInfo(enabled = true) { |
| 274 | return useQuery({ |
| 275 | queryKey: workspaceFilesKeys.storageInfo(), |
| 276 | queryFn: ({ signal }) => fetchStorageInfo(signal), |
| 277 | enabled, |
| 278 | retry: false, // Don't retry on 404 |
| 279 | staleTime: 60 * 1000, // 1 minute - storage info doesn't change often |
| 280 | }) |
| 281 | } |
| 282 | |
| 283 | /** |
| 284 | * Upload workspace file mutation |
nothing calls this directly
no test coverage detected