useDebounce vs useThrottle families

Debounce waits for quiet; throttle guarantees a cadence.

At a glance

Debounce

Search boxes, autosave — run after the user stops typing.

Throttle

Scroll/resize — run at most once per N ms while events fire.

Pick when…

  • useDebouncedValue — You derive UI from a late value (query string).
  • useDebouncedCallback — You need cancel/flush on blur.
  • useThrottledCallback — High-frequency events with continuous work.

Related library docs

Starter import

imports
import { useDebounce } from '@/hooks';
import { useDebouncedValue } from '@/hooks';
import { useDebouncedCallback } from '@/hooks';
import { useThrottle } from '@/hooks';
import { useThrottledValue } from '@/hooks';
import { useThrottledCallback } from '@/hooks';