useThrottledValue
functionSource L5Open-code aq-ui React hook for Use Throttled Value.
function useThrottledValue<T>(value: T, interval = 250): T- Returns
T
Parameters
| Name | Type | Default |
|---|---|---|
value | T | — |
interval? | — | 250 |
Open-code aq-ui React hook for Use Throttled Value.
pnpm dlx aq-ui@alpha add use-throttled-valueImport the parts you need, then jump to an export for its contract.
"use client"
import { useThrottledValue } from "@/hooks/use-throttled-value"Open-code aq-ui React hook for Use Throttled Value.
function useThrottledValue<T>(value: T, interval = 250): TT| Name | Type | Default |
|---|---|---|
value | T | — |
interval? | — | 250 |