use-throttled-state
Throttles state changes
Import
Source
Docs
Package
Usage
useThrottledState
works similar to useState
but throttles the state updates.
setThrottledState
handler in the example below will be called at most once every 1000ms.
Throttled value: –