Skip to content

[vue] 你觉得vuex有什么缺点? #412

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

Open
haizhilin2013 opened this issue Jun 22, 2019 · 8 comments
Open

[vue] 你觉得vuex有什么缺点? #412

haizhilin2013 opened this issue Jun 22, 2019 · 8 comments
Labels
vue vue

Comments

@haizhilin2013
Copy link
Collaborator

[vue] 你觉得vuex有什么缺点?

@haizhilin2013 haizhilin2013 added the vue vue label Jun 22, 2019
@wenyejie
Copy link

wenyejie commented Jun 27, 2019

通俗来说, 如果我不近视, 压根用不着, 但是有些人为了装逼, 还是其它原因, 硬是要加上, 好像不用就是犯罪一样
增加了学习成本, 和开发成本

@NingLin00
Copy link

工具都是用来提高工作效率的,如果不能,那就说明工具用的不对。如果您不打算开发大型单页应用,使用 Vuex 可能是繁琐冗余的。比如就几个状态的话 不用比较好

@luuman
Copy link

luuman commented Oct 23, 2019

多页面直接数据联动、单页面应该数据操作更加容易

@fengyun2
Copy link

牢牢绑定了this,不好扩展

@WenJieLi1998
Copy link

页面刷新时会使state的数据初始化

@jim888666
Copy link

页面刷新,数据会丢失

@chengkunchen
Copy link

感觉没啥用,搞个全局对象挂载到vue就解决啦,搞得那么复杂。单例对象OK

@hyj443
Copy link

hyj443 commented Oct 21, 2021

页面刷新,state回到解放前,但是有办法持久化。

能不用vuex就不用

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

9 participants