Follow a fast-changing value only after it has settled for a delay, with an isPending flag and a flush to apply it now.
pnpm dlx shadcn@latest add "https://ui.tealmac.com/r/use-debounced-value.json"