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

Learning-Redux 着重数据结构设计与数据流,处理异步请求 #16

Closed
JimmyLv opened this issue Jul 17, 2016 · 7 comments
Closed

Comments

@JimmyLv
Copy link
Owner Author

JimmyLv commented Sep 17, 2016

redux(可能不是缺点的)缺点:

  • 手动管理数据流(是好也是坏)
  • 异步很恼火,redux-thunk 并不好用
  • 拆分了很多模块,但其实都是要用的,react-redux,react-router-redux
  • redux-saga 处理异步很爽,但为啥不直接用 mobx 呢?

特别是因为 redux 里面的概念和东西一多,文件目录的结构也跟着变多变混乱,还有专门的 duck 和实践文章来解释按 features 分类的好处,坑爹呢这是!

@JimmyLv
Copy link
Owner Author

JimmyLv commented Sep 17, 2016

正经来说,Redux 的理念确实还是很简洁给力的,首先要明白为什么要有 Redux,Redux 能够解决什么问题:(当然也有可能你的应用并不需要 Redux:You Might Not Need Redux – Medium

image

而在读过很多 Redux 的文章、讨论,以及视频过后,大概需要关注的几个点在于:

image

@JimmyLv
Copy link
Owner Author

JimmyLv commented Sep 24, 2016

@JimmyLv
Copy link
Owner Author

JimmyLv commented Mar 21, 2017

@JimmyLv JimmyLv closed this as completed Mar 21, 2017
@JimmyLv
Copy link
Owner Author

JimmyLv commented Apr 16, 2017

@EthanLin-TWer
Copy link

比我先起步了一年啊…

@JimmyLv
Copy link
Owner Author

JimmyLv commented May 17, 2017

@linesh-simplicity 然而现在都还没到实际工作的项目中用过……

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

No branches or pull requests

2 participants