根据 RxJS 5 MIGRATION.md看起来 shareReplay()
已被删除。
- 为什么?
.publishReplay(1).refCount()
是否忠实地复制了行为?基本上,我需要向任何新订阅者重播单个最新数据集。
最佳答案
好消息,shareReplay()
回到了 RxJS 5.4.0:
https://github.com/ReactiveX/rxjs/blob/892700dd4f5d5e5f9ae9276ede32208f4390c5e9/CHANGELOG.md#540-2017-05-09
关于javascript - 在 RxJS 5 中分享重播,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35246873/