Skip to content

Aborting navigation throws undefined #3122

Closed
@diachedelic

Description

@diachedelic

Version

3.1.3

Reproduction link

https://jsfiddle.net/0ukqxgho/1/

Steps to reproduce

Click the /foo button, check the browser console for errors

What is expected?

An Error be thrown.

What is actually happening?

undefined is thrown.


The docs specify that if a navigation is aborted, then the promise returned by $router.push is rejected. This was causing me grief because I was trying to track down where an Uncaught (in promise) undefined error was being thrown - would have been helpful to have been able to narrow down the error faster.

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