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-previousZyeon UI limits how often it can be asked, and usePrevious hasn't had its turn. Its source will show here once it has.