@knitui/hooks
useThrottledValue
Throttle a rapidly-changing value — port of Mantine's useThrottledValue. The returned value updates at most once per wait ms (leading + trailing). Pure timers, so identical on web and native — handy for ColorPicker drag or scroll-driven state.
WebiOSAndroid
Import
import { useThrottledValue } from "@knitui/hooks";Signature
export function useThrottledValue<T>(value: T, wait: number): T