Input Trigger Timing
How should typing trigger autocomplete network fetches cleanly?
Pros
- Waits until user pauses briefly, cutting API requests by ~80% vs firing every keystroke.
- Cancels slower prior requests if user resumes typing immediately.
Cons & Pitfalls
- Adds ~220ms intentional wait on cache misses.
Interview Rule of Thumb: Pick Debounce + AbortController for all search boxes and filter inputs.