Rxjs - only the first observer can see data from observable.share()
问题 I have some code snippet as following var videosNeedFix = Rx.Observable.fromArray(JSON.parse(fs.readFileSync("videoEntries.json"))).share(); videosNeedFix.count().subscribe(function(count){ //subscrption A console.log(count + " in total"); }); videosNeedFix.subscribe(function(videoEntry){ //subscription B console.log(videoEntry.id, videoEntry.name, videoEntry.customFields); }); The videoEntries.json is a JSON-serialized array of videoEntry object. I'm expecting both subscription A and