frontend / api/suppliers/hooks/useSupplierByIdQuery
api/suppliers/hooks/useSupplierByIdQuery
File
useSupplierByIdQuery.ts
Enterprise
- Only fetches when supplierId is provided
- 1-minute cache reduces redundant API calls
- Graceful null handling for missing data