Skip to content

Allow reloading of the current route when clicked #2957

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

Closed
boycce opened this issue Oct 7, 2019 · 4 comments
Closed

Allow reloading of the current route when clicked #2957

boycce opened this issue Oct 7, 2019 · 4 comments

Comments

@boycce
Copy link

boycce commented Oct 7, 2019

What problem does this feature solve?

I think it's important for vue-router to try mimic native browser for such as when dealing with links being clicked. Adding an option to allow the current route being reloaded when clicked would allow any API requests to be re-fetched that located under the navigational guards (beforeEach, beforeRouteEnter, etc)

What does the proposed API look like?

Maybe include a router instance option to allow for this behaviour

@posva
Copy link
Member

posva commented Oct 7, 2019

Duplicate of #974

@posva posva marked this as a duplicate of #974 Oct 7, 2019
@posva posva closed this as completed Oct 7, 2019
@boycce
Copy link
Author

boycce commented Oct 7, 2019

Yes and also a duplicate of #2430
Many developers are still left with inconclusive and convoluted answers when trying to provide their users with a native browser behaviour while using navigational guards. Imagine the frustration if browsers removed this feature.

@posva
Copy link
Member

posva commented Oct 8, 2019

If you know it was a duplicate, please don't open a new issue...

@boycce
Copy link
Author

boycce commented Oct 9, 2019

Apologies, I didn't realise that #974 was still open, I just saw that it was opened 3 years ago and assumed it was closed.

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