Hands errors from event handlers, effects, timers and promises to the nearest error boundary by re-throwing them on the next render. Returns a stable function.
pnpm dlx shadcn@latest add "https://s7ui.nijland.cc/r/use-throw-to-boundary.json"