Debounce a search and cancel stale requests
Mid · practical lab · 25 min · runtime js-node
Brief
Implement a search handler that waits 300 ms after typing, aborts the previous in-flight request, and ignores stale responses.
3 progressive hints are available in the editor.
Public checks
- debounces input — expected:
clears a timer and waits before fetching