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

feat(history): allow same route navigation #2960

Closed
wants to merge 3 commits into from
Closed

Conversation

boycce
Copy link

@boycce boycce commented Oct 9, 2019

To get the component to build a fresh instance you need to add a key attribute i.e <router-view :key="$route.id"></router-view>. Regardless the vue-router hooks still fire when reloading.

Issue: #974
Related: #2957 #2430

@pedzed
Copy link

pedzed commented Nov 17, 2019

While this is not yet implemented, how could you force a refresh when the query changes in <router-link>?

@n10000k
Copy link

n10000k commented Nov 18, 2019

@pedzed you can do a watch on the route

@pedzed
Copy link

pedzed commented Nov 18, 2019 via email

@posva
Copy link
Member

posva commented May 11, 2020

Thank you but this doesn't implement #974

Removing the duplicated navigation would be a breaking change, so the change is v4 only (per vuejs/rfcs#150)

@posva posva closed this May 11, 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

Successfully merging this pull request may close these issues.

4 participants