当耐特

Results 396 comments of 当耐特

https://github.com/Tencent/omi/commit/4c50c9404b18b0cc7af3895d94ae1de79862d2b1

https://github.com/Tencent/omi/commit/ff35f86b4c5bc432007931d6d944e2cd54db6d1d ``` v3.0.1 error ```

没有考虑,因为感觉 vuex 还有略复杂。我喜欢简单一点的东西

store 里可以 import 多个 model 组合。比如假设 登录态信息在 user model 里,a 页面的 store 和 b 页面的 store 都可以使用 user model 这里可以看到 store 可以组合 model https://github.com/Tencent/westore/blob/master/packages/westore-example/stores/other-store.js#L3-L4

1.你可以先new 出来再import到 各个store 2.westore 没有斩断 store 之间的通讯吧,这个可以开发者自己组织依赖关系、发布订阅什么的。 model之间可以多对多互相依赖,store之间可以多对多互相依赖,model和store之间可以多对多互相依赖。 westore只是斩断model和view之间的依赖。

没下,有一些新的想法。老的在这个分支https://github.com/Tencent/westore/tree/v1

@maclxf 看下这个 https://github.com/Tencent/westore/tree/master/packages/westore-example

老版本的 westore?不是现在的 westore?