In which scenarios error boundaries do not catch errors?

Posted by Prem Tiwari | Updated on

In which scenarios error boundaries do not catch errors?

Below are the cases in which error boundaries doesn’t work,

  1. Inside Event handlers
  2. Asynchronous code using setTimeout or requestAnimationFrame callbacks
  3. During Server side rendering
  4. When errors thrown in the error boundary code itself

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers