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

[vue] 你有使用过vuex的module吗?主要是在什么场景下使用? #538

Open
haizhilin2013 opened this issue Jul 2, 2019 · 3 comments
Labels
vue vue

Comments

@haizhilin2013
Copy link
Collaborator

[vue] 你有使用过vuex的module吗?主要是在什么场景下使用?

@haizhilin2013 haizhilin2013 added the vue vue label Jul 2, 2019
@impeiran
Copy link

impeiran commented Jul 22, 2019

把状态全部集中在状态树上,非常难以维护。
按模块分成多个module,状态树延伸多个分支,模块的状态内聚,主枝干放全局共享状态

@WenJieLi1998
Copy link

当应用非常复杂的时候,所有状态都集中在一起,store就会变得非常臃肿,难以维护

@crush2020
Copy link

当有多个不同模块的数据需要共享,就需要使用module分成成多个小模块使用

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

No branches or pull requests

4 participants