This is a variant of set state that debounces rapid changes to a state. This performs a shallow state check, use useDebouncedDeepState for a deep comparison. Internally this uses lodash debounce to perform the debounce operation.
state and setter
initial value
The number of milliseconds to delay.
Optional
debounce settings.
Generated using TypeDoc
This is a variant of set state that debounces rapid changes to a state. This performs a shallow state check, use useDebouncedDeepState for a deep comparison. Internally this uses lodash debounce to perform the debounce operation.
Returns
state and setter