Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aborting navigation throws undefined #3122

Closed
diachedelic opened this issue Feb 13, 2020 · 1 comment
Closed

Aborting navigation throws undefined #3122

diachedelic opened this issue Feb 13, 2020 · 1 comment

Comments

@diachedelic
Copy link

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.

@posva
Copy link
Member

posva commented Feb 13, 2020

See #3047

@posva posva closed this as completed Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants