Basically i want to add my state globally through install fn, but I can't seem to find any examples.
export default {
install(Vue, options) {
// this will work, but wont be observable by component
Vue.prototype.state = new StateClass()
// I want to add mobx on this step, state above will work, but wont be observable
Vue.component('MyCustomComponent', Vue.extend(MyCustomComponent))
}
}
Basically i want to add my state globally through install fn, but I can't seem to find any examples.