Commit graph

2 commits

Author SHA1 Message Date
Adam Moussa
3a13d94b71 Add 600ms debounce to search in usePaginatedList
- Typing updates the input immediately but delays the API call
- Table keeps showing current results until the search settles
- Resets to page 1 when search changes
- Applies to all list pages using the shared hook
2026-04-16 19:16:04 -04:00
Adam Moussa
7db23a5597 Replace 11 duplicate hooks with single usePaginatedList
- Create shared hooks/usePaginatedList.js accepting a fetch function and optional extra params
- Update all 7 list pages to use the shared hook
- Delete 11 individual hook files (useItems, useEmployees, useLocations, etc.)
2026-04-16 16:53:52 -04:00
Renamed from src/pages/PmSchedule/list/useItems.js (Browse further)