usePrevious
functionSource L5Open-code aq-ui React hook for Use Previous.
function usePrevious<T>(value: T): T | undefined- Returns
T | undefined
Parameters
| Name | Type |
|---|---|
value | T |
Open-code aq-ui React hook for Use Previous.
pnpm dlx aq-ui@alpha add use-previousImport the parts you need, then jump to an export for its contract.
"use client"
import { usePrevious } from "@/hooks/use-previous"Open-code aq-ui React hook for Use Previous.
function usePrevious<T>(value: T): T | undefinedT | undefined| Name | Type |
|---|---|
value | T |