Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
After using router.push\replace asyncData not called on new page #3205
Steps to reproduce
https://poised-hardware.glitch.me/ - if you go index page u will see render error due to undefined variable. But index page only do router.push to /page2.
What is expected ?
asyncData called and variable resolved so no error happened like when page accessed directly without router.push
What is actually happening?
render error due to undefined variable that should come from asyncData
You cannot use
Please see your example fixed: https://glitch.com/edit/#!/lying-ring?path=pages/index.vue:2:1