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

$router.push() with redirect in route's beforeEnter hook causes uncaught promise rejection #1616

Closed
berniegp opened this issue Sep 13, 2019 · 2 comments

Comments

@berniegp
Copy link

@berniegp berniegp commented Sep 13, 2019

Version

3.1.1

Reproduction link

https://jsfiddle.net/asu3qnry/

Steps to reproduce

To trigger the uncaught promise rejection, click on "/home" and then the button.

What is expected?

No error in console

What is actually happening?

Console reports Uncaught (in promise) undefined


Using a router-link instead of the initial $router.push() call removes the error.

@ktsn

This comment has been minimized.

Copy link
Member

@ktsn ktsn commented Sep 13, 2019

I think you are filing it in wrong repo. It's vue-router issue rather than vuex.

@ktsn ktsn closed this Sep 13, 2019
@berniegp

This comment has been minimized.

Copy link
Author

@berniegp berniegp commented Sep 15, 2019

You're absolutely right, sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.