Subscribe on changes!

errorHandler doesn't catch errors from onActivated when callback is async

avatar
Nov 19th 2021

Version

3.2.22

Reproduction link

codesandbox.io

Steps to reproduce

Add an errorhandler to app.config.errorHandler. Then add onActivated with async function to the setup() function of a component and throw an error inside.

What is expected?

The errorHandler added to app.config.errorHandler should catch the error (like it does for onMounted)

What is actually happening?

app.config.errorHandler does not catch the error


I've tried async with onMounted, which works perfectly fine. I'm using onActivated with keep-alive