-
Notifications
You must be signed in to change notification settings - Fork 7
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
Integration with Vue Dev Tools #8
Comments
Yep, even without looking into Vue Dev Tools I can tell that currently normal parent-child relationship between Vue component is not maintained (e.g. child views are not accessible in Looks like I need to look for a way to integrate views a bit "deeper" into Vue component tree model than just calling |
Ok, on a closer look it turns out to be pretty straightforward: all we need is to specify |
👍 thanks! |
739fa2d fixes parent-children relationships between components, so they now show up in DevTools. Another problem is that all subviews are shown there as "Anonymous Component" (setting component name doesn't help). I'd appreciate any suggestions :) |
Great! And I'll take a look at the "Anonymous Component" issue. |
Also it does not detect changes in "Live mode", but it may be related to how Vue DevTools work |
I tried to set the component name in two ways.
// MyComponent.vue
<script>
export default {
name: 'MyComponent'
};
</script>
// root.js
app.add('myroute', {
component: {
template: MyComponent,
name: 'MyComponent'
}
}); Digging inside the code I see that in both ways the component name is set correctly by Vue, but I could not find why it's not shown in Vue Dev Tools. I found that in vue-router, only option 2 will correctly set the name so I looked through their code too, but I can't really figure out how the internals works. |
Closing it since Vue Dev Tools doesn't perform |
Seems VueDevTools properly responds to navigation now. If it isn't then it's because a component is in error (template is a fragment is the most common cause) |
It seems that Vue Dev Tools does not detect Voie components tree. It seems to detect only the root component.
The text was updated successfully, but these errors were encountered: