Skip to content

useDebounceValue

Hook that creates a debounced value

utilities
high
test coverage
Last changed: 6 months ago

Installation

Library
CLI
Manual
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

Source

SourceDemo

Contributors

D
debabin
debabin
H
hywax
hywax

Released under the MIT License.