Errors · hook · 1K

useThrowToBoundary

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.

Install

pnpm dlx shadcn@latest add @s7ui/use-throw-to-boundary

Info

Files:
hooks/use-throw-to-boundary.ts
Uses:
—
Packages:
—