Z
Zyeon UI

usePrevious · Zyeon UI

A hook that returns the last distinct value (Object.is) before the current one, with a read-only render and an effect-committed snapshot, so values created during render are safe.

npx shadcn@latest add @zyeon/use-previous
Preview usePrevious on Zyeon UI's site (opens in a new tab)

Not checked yet

Zyeon UI limits how often it can be asked, and usePrevious hasn't had its turn. Its source will show here once it has.