Provide ability to debug manually appended & mounted components which is necessary in edge cases.
import Mention from "./MentionSpan";
const ComponentClass = Vue.extend(Mention);
const instance = new ComponentClass({
propsData: { id: result.id, removeFunction: this.
});
instance.$slots.default = [result.name];
instance.$mount();
vue-devtools.register(instance);
Just make sure to define a parent when creating the component instance:
const instance = new ComponentClass({
propsData: { id: result.id, removeFunction: this.
parent: this, // assuming you do this in e.g. mounted() or a component method
});
That's enough to make it appear.
Thank you so much!
Hum, this doesn't seems to work anymore :(
Most helpful comment
Just make sure to define a
parentwhen creating the component instance:That's enough to make it appear.