···100100101101**Location**: `src/lib/useDebounce.ts`
102102103103-Standard debounce hook. Value updates are delayed by specified milliseconds.
103103+Debounce hook with flush capability. Value updates are delayed by specified milliseconds.
104104105105```typescript
106106const [search, setSearch] = useState("");
107107-const debouncedSearch = useDebounce(search, 300);
107107+const { value: debouncedSearch, flush, isPending } = useDebounce(search, 300);
108108+109109+// flush() immediately updates to current value (useful for beforeunload)
110110+// isPending is true when there's a pending debounced update
108111```
109112110113## useCommonTags