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

如何跨model通信?和dva相比优势在哪? #77

Open
paggyli opened this issue Sep 8, 2021 · 3 comments
Open

如何跨model通信?和dva相比优势在哪? #77

paggyli opened this issue Sep 8, 2021 · 3 comments

Comments

@paggyli
Copy link

paggyli commented Sep 8, 2021

如何跨model通信?和dva相比优势在哪?

@qiutian00
Copy link

我也想问, 可以在umi中使用吗?

@haite
Copy link

haite commented Sep 14, 2021

如何跨model通信?和dva相比优势在哪?

对于dva来说,如果有两个相似的model,这两个model是无法合并成为一个的。
但是对于hox来说,只需要定义一个hooks,通过hox的createModel生成两份实例即可。
@awmleer 请赐教。

@znanjie
Copy link

znanjie commented Nov 30, 2021

models/A.ts & models/B.ts 下的状态要如何共享和更新(业务场景足够复杂且独立的情况不考虑放在一块儿,A的某一状态和B的某一状态互相关联影响)?
--- 分割 ---
目前解决这样的场景是在具体的使用组件中做一层判断逻辑通信(体验不好),实际上和状态共享/数据流的概念已经没啥关系了。

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

4 participants