Returns value after it has stopped changing for delayMs — a trailing
debounce. Keep a live input controlled by the raw value and feed the debounced
value to expensive derived work (filtering, sorting, network), so the work
settles on a pause instead of running on every keystroke (which makes ranked
lists jump as the user types).
Returns
valueafter it has stopped changing fordelayMs— a trailing debounce. Keep a live input controlled by the raw value and feed the debounced value to expensive derived work (filtering, sorting, network), so the work settles on a pause instead of running on every keystroke (which makes ranked lists jump as the user types).