Demo
The demo/ folder contains a ready-to-run Vue 3 app covering every feature of vue-error-boundary-kit on one page, each behind its own "break it" button — so you can trigger and recover from a real error, not just read about one.
What the demo includes:
- Basic
<ErrorBoundary>+ retry, andresetKeysauto-resetting the boundary on a simulated navigation maxRetries, and nested boundaries demonstratingisolate(an error staying local vs. bubbling to a parent boundary)useErrorBoundary()for manually capturing an errorerrorCapturedstructurally can't see (a caughtJSON.parsefailure)- An error thrown from an async
setup()behind<Suspense> - Reporting adapters (console + a combined reporter) and
useGlobalErrorCapture()catching an unhandled promise rejection and a rawaddEventListenererror - The DevTools error history panel, fed by every boundary above
createRateLimitedReporter()deduplicating and rate-limiting a simulated mass-failure storm
bash
git clone https://github.com/macrulezru/vue-error-boundary-kit.git
cd vue-error-boundary-kit
npm install --prefix demo
npm run demoOpens at http://localhost:5173.