Skip to content
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

Url params in child route undefined #1809

Closed
dimensi opened this issue Oct 13, 2017 · 2 comments
Closed

Url params in child route undefined #1809

dimensi opened this issue Oct 13, 2017 · 2 comments

Comments

@dimensi
Copy link

dimensi commented Oct 13, 2017

Version

2.8.0 & 3.0.0

Reproduction link

http://jsfiddle.net/xfmcLgjd/4/

Steps to reproduce

  1. Create route with optional param
  2. Create in route, child route with optional param

What is expected?

id === 10  
mode === 'test'  
modeId === 1  

What is actually happening?

id === 10
mode === undefined
modeId === undefined

With problem only from 2.8.0 and only with child.

@posva
Copy link
Member

posva commented Oct 13, 2017

For some reason, declaring the props mode and modeId on the parent route view fixes the issue
edit: I cleared out the conversation because it was my bad, sorry 😆

@posva posva added bug and removed need repro labels Oct 13, 2017
@vuejs vuejs deleted a comment from dimensi Oct 13, 2017
@vuejs vuejs deleted a comment from dimensi Oct 13, 2017
@vuejs vuejs deleted a comment from dimensi Oct 13, 2017
@vuejs vuejs deleted a comment from dimensi Oct 13, 2017
@posva posva added regression and removed bug labels Oct 13, 2017
@yyx990803
Copy link
Member

Duplicate of #1800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants