Warum gibt publishReplay (1) .refCount() den letzten Wert für späte Abonnenten nicht wieder?Warum wird Rxjs publishReplay (1) .refCount() nicht wiedergegeben?
a = new Rx.Subject();
b = a.publishReplay(1).refCount();
a.subscribe(function(x){console.log('timely subscriber:',x)});
a.next(1);
b.subscribe(function(x){console.log('late subscriber:',x)});
<script src="http://reactivex.io/rxjs/user/script/0-Rx.js"></script>
Erwartete Ausgabe:
timely subscribe: 1
late subscriber: 1
Tatsächliche Ausgabe
timely subscriber: 1