Skip to content

useThrottleValue ​

utilities
test coverage
Last changed: 28 days ago

Hook that creates a throttled value

typescript
import { useThrottleValue } from '@siberiacancode/reactuse';

Usage ​

typescript
const throttledValue = useThrottleValue(value, 500);

Demo ​

Api ​

Parameters

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

Returns

Value

Source ​

Source • Demo

Contributors ​

Avatardebabin
Avatarbabin

Released under the MIT License.