mobxjs / mobx-vue

🐉 Vue bindings for MobX
MIT License
475 stars 22 forks source link

store as vue instance prototype #22

Closed joshua1 closed 6 years ago

joshua1 commented 6 years ago

I want to ask if this will work if i added a new instance of my store as a vue instance prototype object Vue.prototype.$todoStore=new TodoViewModel() And use in all my components as this.$todoStore as opposed to creating a new instance of the store in each component.

kuitos commented 6 years ago

yes, it could