Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mmplx在vue的最佳实践? #7

Open
harvey-woo opened this issue Oct 30, 2018 · 1 comment
Open

mmplx在vue的最佳实践? #7

harvey-woo opened this issue Oct 30, 2018 · 1 comment

Comments

@harvey-woo
Copy link

不知道大佬请问最近有对mmplx在vue上进行过实践,最近我在写mobx-mp,打算开坑mobx-vue,与我正在写的mobx-mp以mmplx作为核心的小程序以及vue的同构(部分?),不知道大佬是否有什么建议或者意见,谢谢指教

@kuitos
Copy link
Member

kuitos commented Oct 31, 2018

mmlpx 本身可以视为为 mobx 的一种最佳实践,是可以脱离 UI 层去看的。视图只是依附,做好 mobx 层然后搭配相应的 binding 与不同视图协作就行了。
不过 vue 中确实有个问题是,如果你要开启 mobx 的严格模式,可能要通过一些 hack 手段 hack 进 vue 中的双向绑定部分(v-model 这类),以使得其底层的数据变更能 runInAction。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants