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

June 20, 2022
137