You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consts=Bacon.sequentially(5,[1,2,3,4])constp=Bacon.sequentially(10,["lol","bal"]).toProperty("")Bacon.when([s,p],(...args)=>args).log("when")// Outputs:// when [ 1, '' ]// when [ 2, 'lol' ]// when [ 3, 'lol' ]// when [ 4, 'bal' ]// when <end>
However, this is not (note that .toProperty() is called without initial value). The number of s events does not matter, the last value is always missing.
consts=Bacon.sequentially(5,[1,2,3,4])constp=Bacon.sequentially(10,["lol","bal"]).toProperty()Bacon.when([s,p],(...args)=>args).log("when")// Outputs:// when [ 1, 'lol' ]// when [ 2, 'lol' ]// when [ 3, 'bal' ]// when <end>
The text was updated successfully, but these errors were encountered:
milankinen
changed the title
.when loses the last event if pattern has a Property without initial value
Bacon.when loses last event if pattern has a Property without initial value
Jul 11, 2018
This one is working as expected:
However, this is not (note that
.toProperty()
is called without initial value). The number ofs
events does not matter, the last value is always missing.Bacon version is
[email protected]
The text was updated successfully, but these errors were encountered: