UNPKG

@lesnoypudge/utils-react

Version:

lesnoypudge's utils-react

15 lines (14 loc) 355 B
import { useFunction } from "../useFunction/useFunction.js"; import { useThrottle } from "../useThrottle/useThrottle.js"; const useThrottled = (callback, delay) => { const { throttle } = useThrottle({ stateless: true }); return useFunction(throttle(callback, delay)); }; export { useThrottled }; //# sourceMappingURL=useThrottled.js.map