useDebouncedValue holds a value back until it stops changing, for search as you type. useDebouncedCallback returns a stable function with cancel and flush, for autosave.
pnpm dlx shadcn@latest add "https://hirael.com/r/use-debounce.json"