
This lesson is for members. Join us?
Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.
What Can onErrorCaptured Catch?
onErrorCaptured can catch errors thrown at many different times from descendant components. In this lesson, let’s experiment throwing errors at a different times to see if they are indeed captured. The result? onErrorCaptured can catch errors thrown synchronously and asynchronously from script setup, from event handlers, Vue lifecycle hooks like mounted, and more.
Links
