frontend / api/inventory/hooks
api/inventory/hooks
File
useSuppliersQuery.ts
Enterprise
- 5-minute cache reduces API calls and improves UX
- Conditional enabling for performance optimization
- Normalized to SupplierOption shape for UI consistency
- Graceful error handling with React Query