Props not working with vue-router
Faryyaz opened this issue · 2 comments
Faryyaz commented
Reproduction
https://codesandbox.io/p/sandbox/vue-router-forked-5xd2tn?file=%2Fsrc%2Fmain.js%3A15%2C34-16%2C4
Steps to reproduce the bug
- Open the codesandbox link
- Click on the link Go on the page detail
Expected behavior
The id param should be displayed. Even though it has not been defined in the router config:
path: "/detail/"
Actual behavior
The id param is undefined in console log and is not displayed on the page.
Additional information
No response
Faryyaz commented
For those searching for an answer. Please read:
https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22