-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[2.0] beforeRouteEnter's next(vm => { }) callback not always works #779
Comments
Tested on jsfiddle, https://jsfiddle.net/fnlCtrl/a2v5rrcp/ |
Same here.
|
@fy0 Why would you use the same component for different routes? |
@posva Just like the todo-list demo, different items and url, same page. |
BTW, using a |
@posva Cool. But It doesn't matter the way it be implemented, bug is bug. |
@fy0 that's why I didn't close it 😉 |
@posva Yeah, thx for contributors' great works. |
I'm still seeing this issue using Vue 2.1.0 and Vue Router 2.1.1, but when switching between different params under the same route. I'm investigating whether it's something to do with my setup. EDIT: I see now that param changes don't cause that function to fire anyway. Okay, I'll set up a watcher. |
Seems to still have a problem, anyone with me? |
I am also having this issue. adding a key to the router-view doesn't seem to work for me. |
It's a long time ago, now use And don't forget to call |
Add a key seems work for me |
Same for me with |
Anyone else still experiencing this issue on vue-router@^3.0.1? |
Yes, I still get the same problem with vue-router@^3.0.1. Any ideas rather than forcing a key in the router-view ? |
yes, suggestions in comments don't work for me |
There's an open issue for this at #2255 |
This bug this about different path with the same component.
index.vue
main.js
Then access / and just switch between a and b, "222" never be printed.
I already tested it on a new empty project generated by vue-cli. I'll upload that if you need.
The text was updated successfully, but these errors were encountered: