-
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
providing .sample() the same observable it samples produces stale output #2075
Comments
@Blesh Is this possibly related to our change in default schedulers? That was my initial hunch, but then I thought that the order should still be the same, even if it's no longer scheduled on the microtask. My latest guess is that this is primary due to the If that's the case, which order is correct is prolly debatable but I think it will only have a practical difference in cases like these so we should prolly reverse the subscription order. ...first glance suggests doing so would be pretty internally awkward though.. For other's reference: RxJS v4 defaulted to micro-task scheduling (was called AyncScheduler but in v5 this is called |
I think it's more clear to reproduce this without the filter. http://jsbin.com/coreni/edit?js,output const item$ = new Subject();
item$
.sample(item$)
.subscribe(value => {
console.log(value);
});
item$.next(1);
item$.next(2);
item$.next(3); v4: 1 2 3 |
I'll take a look at this |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Thanks for the skeleton @jayphelps
RxJS version:
5.0.0.beta-12
Code to reproduce:
http://jsbin.com/sapuju/4/edit?js,console,output
Expected behavior:
Open the console. 3
Actual behavior:
2
Additional information:
The text was updated successfully, but these errors were encountered: