useThrottledValue

Limit how often a value updates, no more than once per interval.

This is custom React hooks, you need to follow the Basic Rules when you use it.

General

The throttled value updates at most once per second.

APIs

useThrottledValue

const useThrottledValue = <T>(value: T, wait: number) => T
Edit this page on GitHub