useLatest
Always-current ref — kills stale closures.
import { useLatest } from '@/hooks';Throttle, stable callbacks, latest ref, render debug.
useLatestAlways-current ref — kills stale closures.
import { useLatest } from '@/hooks';useStableCallbackStable function identity that calls the latest fn.
import { useStableCallback } from '@/hooks';useMemoizedFnAlias of useStableCallback.
import { useMemoizedFn } from '@/hooks';useThrottleThrottle a changing value.
import { useThrottle } from '@/hooks';useThrottledCallbackThrottle a function with cancel and flush.
import { useThrottledCallback } from '@/hooks';useThrottledValueReturn a value limited to once per interval.
import { useThrottledValue } from '@/hooks';useRenderCountCount how many times the component rendered.
import { useRenderCount } from '@/hooks';useWhyDidYouUpdateLog which props changed (debug).
import { useWhyDidYouUpdate } from '@/hooks';useRafrequestAnimationFrame loop with start/stop.
import { useRaf } from '@/hooks';