Questions tagged «redux-observable»

7
为什么要在Redux-Saga上使用Redux-Observable?
我用过Redux-Saga。到目前为止,用它编写的代码很容易推理,除了JS生成器功能不时使我头晕。据我了解,Redux-Observable可以完成类似的处理副作用的工作,但无需使用生成器功能。 但是,来自Redux-Observable的文档并没有提供很多关于为什么它比Redux-Saga优越的意见。我想知道是否不使用生成器功能是使用Redux-Observable的唯一好处。使用Redux-Observable而不是Redux-Saga可能带来什么弊端,陷阱或妥协?提前致谢。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.