mobx的createTransformer和mobx-utils computedFn有什么区别?
有时候,mobx和mobx-utils (即whenWithTimeout)中的内容有重叠之处,但当我看到过去时,后者被标记为不推荐使用。查看computedFn的实现,它似乎可以做一些额外的事情来观察传递到computedFn()结果的参数。不过我不太确定。
https://mobx.js.org/refguide/create-transformer.html和https://github.com/mobxjs/mobx-utils#computedfn
发布于 2019-06-04 10:48:56
来自https://github.com/mobxjs/mobx-utils/issues/199
createTransformer不需要一个“主机”来存储它的状态。如果你能利用computedFn,我会的。
https://stackoverflow.com/questions/55810836
复制相似问题