Skip to content
aq-ui
Back to HooksHook

Use Debounced Value

Open-code aq-ui React hook for Use Debounced Value.

Installation

pnpm dlx aq-ui@alpha add use-debounced-value

API reference

Client module

Import the parts you need, then jump to an export for its contract.

View full source

Quick start

"use client"

import { useDebouncedValue } from "@/hooks/use-debounced-value"

useDebouncedValue

functionSource L5

Open-code aq-ui React hook for Use Debounced Value.

function useDebouncedValue<T>(value: T, delay = 250): T
Returns
T

Parameters

NameTypeDefault
valueT—
delay?—250

Files

  • hooks/use-debounced-value.ts

Source