Skip to content

Custom error handler causing recursive error handling leading to Maximum call stack size exceeded error #13241

Open
@adamreisnz

Description

@adamreisnz

Looking at the code for callWithErrorHandling, it has a try/catch block which will call handleError when an error occurs.

However, handleError will then try to process the error with callWithErrorHandling again, which leads to infinite recursion, causing RangeError Maximum call stack size exceeded.

Image

Aside from making sure the custom error handler doesn't ever throw any errors, can we maybe prevent within Vue that callWithErrorHandling will not be called again recursively if it itself has errored?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions