Hook to throttle a callback function
Function to throttle
Minimum delay between executions in milliseconds
Throttled function
const handleTouchMove = useThrottle((event: TouchEvent) => { // Handle touch move}, 16); // ~60fps Copy
const handleTouchMove = useThrottle((event: TouchEvent) => { // Handle touch move}, 16); // ~60fps
Hook to throttle a callback function