Subscribe on changes!

请求支持 reactive 的 mobx 转换或者响应支持

avatar
Sep 3rd 2021

What problem does this feature solve?

mobx 内部也是 Proxy 和 vue/reactive 也很相似, 通过 reactive(mobx class) mobx 的 observable 是正常工作的,但是computed 不行。 希望 reactive 能转换 mobx 类。vue2 有 mobx-vue 支持。vue3中公用 react 的 mobx 目前没有很好的方式。

What does the proposed API look like?

reactive(new MobxClassStore())

avatar
Sep 3rd 2021

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.


You don't need Mobx with Vue but if you want to create an integration, that should be a third party library, not in Vue core

avatar
Sep 4th 2021

There is no point in using MobX in Vue because the two systems are redundant.

avatar
Sep 4th 2021

I think OP is trying to reuse state management logic across apps built with both Vue and React.