useDebounceValue ​
Hook that creates a debounced value and returns a stable reference of it
typescript
import { useDebounceValue } from '@siberiacancode/reactuse';
Usage ​
typescript
const debouncedValue = useDebounceValue(value, 500);
Demo ​
Api ​
Parameters
Name | Type | Default | Note |
---|---|---|---|
value | Value | - | The value to be debounced |
delay | number | - | The delay in milliseconds |