-
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
RxJs lastValueFrom scheduled asapScheduler strange behaviour #7241
Comments
It could be an issue on https://stackblitz.com/edit/rxjs-cwwznh?devtoolsheight=60&file=index.ts |
I think this was fixed by #7198, not released yet as a patch. I've bisected it by adding this test: it('completes', (done) => {
const input = of('a');
scheduled(input, asapScheduler).subscribe({
complete: done
});
}); on master and 7.x branch it's fixed, and before that merge it breaks. |
This is confirmed fixed in the latest published version of RxJS (7.8.1) |
Describe the bug
I have this stript for play with
scheduled
/asapScheduler
but I found a strange behaviour in combination withlastValueFrom
:the expected behaviour is on button click, 3 console log, eg.:
But on first click it produce NO console log
On second click it produce 5 console log:
and on third click, 1 console log:
Why not produce 3 console log on each click?
Expected behavior
3 console log on each click
Reproduction code
Reproduction URL
try online https://stackblitz.com/edit/rxjs-mkgftu?devtoolsheight=60&file=index.ts
Version
7
Environment
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: