Skip to content
#

learning-notes

Here are 171 public repositories matching this topic...

ifyour
ifyour commented Mar 28, 2018
  • 单向数据流和双向数据流
    • Redux: 数据流是单向的
    • Mobx: 响应式的双向数据流, 值更新了通知视图更新
  • 性能
    • Redux: dispatch 变更 store, store 更新后触发依赖该 state 的 component 更新视图
    • Mobx: 执行效率要高一些, 不会生成新的对象, 内存中只有一份数据源
  • 调试
    • Redux: 基于 Flux 体系, 整个流程比较规范, 记录每次 action, 流程清晰, 易于 debug
    • Mobx: 数据只有一份, 各种数据相互依赖相互绑定, 导致数据问题的源头难以被跟踪到
  • 学习成本
    • Redux: 学习成本较高, 要理解 dispatch, action, reducer 这些规范概念
    • Mobx: 容易学习, 简

Improve this page

Add a description, image, and links to the learning-notes topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the learning-notes topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.