Skip to content

useDebounceValue ​

Category
Utilities

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

NameTypeDefaultNote
valueValue-The value to be debounced
delaynumber-The delay in milliseconds

Returns

Value

Contributors ​

Source • Demo