You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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))
}
}
The text was updated successfully, but these errors were encountered:
Basically i want to add my state globally through install fn, but I can't seem to find any examples.
The text was updated successfully, but these errors were encountered: