-
-
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
Router links sometimes lead to wrong pages or don't work #2305
Comments
Please provide a boiled down repro when reporting a bug, that would really make my life easier 😄 The store part + axios + the nodesrelatives component is too much. |
I made a boiled down version with static data. The |
Will you reopen this? Asking for a boiled down version would have been just as effective without closing it, BTW. |
I gave this a second look, I still think it's too much, it looks more like a post asking for help 😕. I can help you where I can, I saw there are many antipatterns in your code, the most important one is using a watcher + setting a variable instead of a computed property. I would recommend to directly use I'll recommend you to wait till #2286 is merged and released (or test it locally). If it still fails could you move the code to a codesandbox and send me the link? |
Thanks for the hint. I'll give it a try. |
@posva I let this rest for a while, and just tried to look into the antipatterns you mentioned, but these things don't seem wrong to me. The only watcher I have is the one for |
Version
3.0.1
Reproduction link
http://daggy1c.watchduck.net/nodes/9
Steps to reproduce
Start on page 9, click parent 2, click parent 1. Link does not work.
Start on page 10, click parent 1, click child 2. Link leads to 13 instead of 2.
What is expected?
That the links go to the correct pages.
What is actually happening?
Sometimes these links go to the wrong page or don't work.
A detailed description is on Stackoverflow: https://stackoverflow.com/questions/51332783
Full version with console logging: http://daggy1.watchduck.net/nodes/9
Code on GitHub: https://github.com/watchduck/daggy/tree/static-data/front/src
Works without tag="li":
http://daggy1a.watchduck.net/nodes/9
https://github.com/watchduck/daggy/tree/simple-router-links/front/src
The text was updated successfully, but these errors were encountered: