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

Redux 和 Vuex 有什么区别,说下一它们的共同思想 #206

Open
lgwebdream opened this issue Jul 6, 2020 · 2 comments
Open

Redux 和 Vuex 有什么区别,说下一它们的共同思想 #206

lgwebdream opened this issue Jul 6, 2020 · 2 comments
Labels
React teach_tag Vue teach_tag 快手 company

Comments

@lgwebdream
Copy link
Owner

No description provided.

@lgwebdream lgwebdream added React teach_tag Vue teach_tag 快手 company labels Jul 6, 2020
@lgwebdream
Copy link
Owner Author

扫描下方二维码,获取答案以及详细解析,同时可解锁800+道前端面试题。

@LoveWei0
Copy link

  • redux使用的是不可变数据
  • vuex的数据是可变的
  • redux每次都是用新的state替换旧的state
  • vuex是直接修改
  • redux在检测数据变化的时候,是通过diff的方式比较差异的
  • vuex其实和vue的原理一样,是通过getter/setter来比较的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
React teach_tag Vue teach_tag 快手 company
Projects
None yet
Development

No branches or pull requests

2 participants