What happens when a user types in a search box at 60 characters per minute? Or when they scroll through your page, triggering hundreds of events per second? Without proper handling, your application ...
Debounce delays running the function until a pause of silence (no new calls) has passed. Every new call resets the timer. Useful when you only care about the final state after activity stops — e.g.