dwqs / vue-mobx

:smile: :star: :innocent: Mobx binding for Vuejs 2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why ?

AlexandreBonaventure opened this issue · comments

I was wondering why you want to use mobX while Vue already features reactive state and data-binding.
https://twitter.com/youyuxi/status/736939734900047874?lang=fr
From the example you display I can't see any benefits in comparison of trigerring common actions and shared state from a $root component

commented

Just want to write less verbose code. I wouldn't like to share state from a $root component, I think it's difficult to maintain when the project more and more complex. On the other hand, Vue and Mobx both are great project, why not try?

@AlexandreBonaventure I think mobx can make your code more elegant and clean without so many STRING to define Mutations. mobx benefit react with reactive and elegant code. For vue, only elegant code from my perspective. Good job @dwqs, Thx

commented

Thx your comment and encouragement. @njleonzhang

commented

Long time no response and closed it