Question - In which cases do error boundaries not catch errors?
Answer -
Following are some cases in which error boundaries don't catch errors:
- Error boundaries don't catch errors inside the event handlers.
- During the server-side rendering.
- In the case when errors are thrown in the error boundary code itself.
- Asynchronous code using setTimeout or requestAnimationFrame callbacks.