-
-
Notifications
You must be signed in to change notification settings - Fork 5k
beforeRouteEnter does not set data on 2nd visit #1357
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
Comments
you're probably looking for |
@posva if following the description of it from here
well then, no. Any route I go to, when I get back to that one it doesn't update the data. I tried to isolate everything already to the point only Currently still talking about it on gitter somehow. doing only mounted and created has the same output. they both have the same |
it may be #1322 |
For anyone blocked by this issue, you may be able to get around it by observing $route and doing whatever updates you had planned in beforeRouteUpdate's next callback there. |
Version
2.4.0
Reproduction link
https://jsfiddle.net/chrisvfritz/50wL7mdz/
Steps to reproduce
A bit hassle to do in a Bin. Minimal reproduction I can give is only this code and steps below:
What is expected?
someData
is equal todata
What is actually happening?
someData
is emptyThe text was updated successfully, but these errors were encountered: