Vue · Senior · Question 35 of 75
What does a global app.config.errorHandler give you that onErrorCaptured doesn't?
- ✓Correct answer: A single place to report all uncaught errors from components, watchers and hooks to monitoring
- 2The ability to show a fallback UI for one subtree
- 3Automatic retries of failed components
Explanation
Use onErrorCaptured for local error boundaries with fallback UI, and the global handler (or Sentry's Vue integration) for reporting.