frontend / api/inventory/hooks
api/inventory/hooks
File
useItemDetailsQuery.ts
Enterprise
- Fetches from /api/inventory/{id} for complete item data
- Handles both 'quantity' and 'onHand' field name variations
- Gracefully handles fetch errors without blocking dialogs
- 30-second cache for performance