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

Adding children and parent to currentRoute #1941

Closed
wants to merge 0 commits into from
Closed

Adding children and parent to currentRoute #1941

wants to merge 0 commits into from

Conversation

ianwalter
Copy link

Also adding .vscode (IDE settings file) to .gitignore

@posva I'd like to have the feature #1650 was trying to add but it looks like there are too many unrelated changes in that PR and it hasn't been updated with your comments for a little while so I decided to try re-work it here. Thank you for your consideration.

@@ -21,6 +21,8 @@ export function createRoute (
const route: Route = {
name: location.name || (record && record.name),
meta: (record && record.meta) || {},
children: (record && record.children) || [],
parent: (record && record.parent) || {},
Copy link
Member

@posva posva Jan 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it better to have null or undefined if the parent does not exist?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think it would be. I'll update it.

@posva
Copy link
Member

posva commented Jan 7, 2018

Sorry for taking so much time in getting this a read!
Thank you very much for the contribution!

@posva posva closed this Jan 13, 2018
@posva
Copy link
Member

posva commented Jan 13, 2018

Opening #1991 to replace this

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

Successfully merging this pull request may close these issues.

None yet

2 participants