mizzle

Use Debounced Callback · mizzle

Wraps a callback so it runs once the calls stop for a given time, always with the newest arguments and the newest callback. A call still waiting when the component unmounts runs then, so the last keystroke before a popover closes is not lost.

npx shadcn@latest add https://mizzle.saddy.me/r/use-debounced-callback.json

Use Debounced Callback is part of mizzle's licensed catalog

Sign in or get a license at mizzle to see its source and install it.