mobxjs / mobx

Simple, scalable state management.
http://mobx.js.org
MIT License
27.55k stars 1.78k forks source link

Would MobX play nicely with VueJS? #245

Closed makeitrein closed 8 years ago

makeitrein commented 8 years ago

Just started a new VueJS pet project, does anyone have experience with using MobX for state management rather than the default VueJS implementation?

Would love to be able to use MobX @computed syntax at the store level, not sure if this is a good idea or not.

Thx!

capaj commented 8 years ago

@makeitrein I think some people use MobX with Angular, so it should be possible, but I would probably stick to the state management built in to Vue. I have no idea how they implement it, but everywhere I look I see that vue handles reactivity for you via some "proxyiing". I would be very interested in how they do it. For example here: http://blog.evanyou.me/2015/10/25/vuejs-re-introduction/ and https://vuejs.org/guide/application.html#State-Management

So yes it would. Is it a good idea? Probably not. Unless their implementation of observables and observation is slow.

jordan2b1 commented 8 years ago

@capaj - thx for the answer, I ended up dropping Vue - React + MobX is the sweet spot I've been finding for front-end JS projects.