-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[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
Labels
vue
vue
Comments
通俗来说, 如果我不近视, 压根用不着, 但是有些人为了装逼, 还是其它原因, 硬是要加上, 好像不用就是犯罪一样 |
工具都是用来提高工作效率的,如果不能,那就说明工具用的不对。如果您不打算开发大型单页应用,使用 Vuex 可能是繁琐冗余的。比如就几个状态的话 不用比较好 |
多页面直接数据联动、单页面应该数据操作更加容易 |
牢牢绑定了this,不好扩展 |
页面刷新时会使state的数据初始化 |
页面刷新,数据会丢失 |
感觉没啥用,搞个全局对象挂载到vue就解决啦,搞得那么复杂。单例对象OK |
页面刷新,state回到解放前,但是有办法持久化。 能不用vuex就不用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[vue] 你觉得vuex有什么缺点?
The text was updated successfully, but these errors were encountered: