baconjs / bacon.js

Functional reactive programming library for TypeScript and JavaScript
https://baconjs.github.io
MIT License
6.47k stars 330 forks source link

Merging synchronous stream with self doesn't work right #520

Closed Macil closed 9 years ago

Macil commented 9 years ago

This should print out 2, 3, and , but only 2 and get printed.

var Bacon = require('baconjs');

var s = Bacon.once(2);
s.merge(s.map(3).delay(1)).log();

Changing it to be var s = Bacon.once(2).delay(1); or merging against a different stream like s.merge(Bacon.once(2).map(3).delay(1)).log(); both work fine.

Bacon 0.7.41 from NPM

raimohanska commented 9 years ago

Known issue, sorry :( See #367