You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
396 B
12 lines
396 B
/**
|
|
* Debounce a value change by a specified number of milliseconds. Useful
|
|
* when you want need to trigger a change based on a value change, but want
|
|
* to defer changes until the changes reach some level of infrequency.
|
|
*
|
|
* @param value
|
|
* @param delayMs
|
|
* @returns
|
|
*/
|
|
declare function useDebouncedValue<TValue>(value: TValue, delayMs?: number): TValue;
|
|
export default useDebouncedValue;
|