A ref that always holds the newest value of a prop or callback, updated after each render. Lets an effect or a subscription call the latest callback without re-running whenever its identity changes.
npx shadcn@latest add https://mizzle.saddy.me/r/use-latest.jsonSign in or get a license at mizzle to see its source and install it.