Skip to content

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

@ingipingi

Description

@ingipingi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions