|
|
|
|
|
by mdkess
4590 days ago
|
|
Throttle is different, it's a rate limiter, whereas debounce just measures delays between calls. With throttle, the server request would be made every 200ms rather than 200ms after the user stops typing. From a user experience though, throttle feels like a better way to approach this, since it would let you update the list at a measured pace, but it would be incorrect for the problem as described. |
|
But obviously, in this case, the interviewer specifically outlined requirements that would make debounce the better choice than throttle.