useDebounceValue
A value that updates only after it stops changing.
Delays a fast-changing value, such as a search query, until it has been still for the delay, so filtering and requests do not run on every keystroke.
Usage
Examples
Filter after typing settles
API
2 options
1 return value
Accessibility
Announce result counts after the debounced update, not per keystroke, so screen readers are not flooded.
Notes
- Use useDebounceCallback when you need cancel or flush.
Related
useDebounceCallbackA debounced function with cancel and flush.useBooleanGeneric boolean state with stable toggle, enable and disable actions.useControllableStateState that works controlled or uncontrolled, like native inputs.useCountdownA pausable countdown or count-up that stops at its target.useCounterA number with increment, decrement, set and reset actions.useDisclosureOpen, close and toggle state for overlays and disclosures.