baconjs / bacon.js

Functional reactive programming library for TypeScript and JavaScript

Home Page:https://baconjs.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

understanding .spy

wa-sunlab opened this issue · comments

commented

Hello,

Thanks for your offer to help.
Yes i will need your help to develop some debugging tool.

I am using .spy to log observable values , when i try following code

http://jsfiddle.net/123xLwdd/

Why i am not getting values of my 3rd Observer which is made by "zip" of first two.

Thanks
Best Regards
Waqas

creates an EventStream that delivers the given series of values (given as array) to the first subscriber

I would take a guess that because your spy is actually an idle subscriber (particularly with a .onValue for each of the streams) - this is the first subscriber. By the time your .zip comes along, and then subscribes - the values fromArray are already gone.