-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in buffer or bufferCount operation when used with subject #1754
Comments
To narrow this down, what you're seeing is happening in |
Currently on
RxJS 4 returns:
This last array is last opened buffer, which did not have time to be populated with values, since right after it's opening The same code in RxJS 5 results in:
There are actually two differences here: first is obvious subscription order bug, that was fixed here: #2195 On that branch results are:
So second problem is that last one array. Currently code
in RxJS 4 results in
and in RxJS 5
So real question here is: when selector stream completes do we want to return last initiated buffer? There is also similar bug fix #2174, but in other direction - it emits last buffer once source observable completes |
- Resolves an issue where a multicast observable could not adequately be used to notify a buffer on itself - Corrects a regression that was introduced by a bad merge back in 6.0. This was originally corrected in PR ReactiveX#2195. fixes ReactiveX#1754
RxJS version: 5.0.0-beta.8
Code to reproduce:
https://jsfiddle.net/iFadey/qahvL1dm/
Expected behavior:
On first two clicks on section element must print pair of two event objects.
Actual behavior:
It prints single event object on first two clicks. Afterwards it starts printing correct pair.
Additional information:
I verified it in RxJS 4 and it works correctly with that version.
The text was updated successfully, but these errors were encountered: