-
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
fix: debounceTime with asapScheduler deadlock because of nested calls #7207
base: master
Are you sure you want to change the base?
fix: debounceTime with asapScheduler deadlock because of nested calls #7207
Conversation
Hi, @yuri-apanasik, thank you for your contribution. Please add a test and confirm that the test is broken in master prior to changing any code. |
|
||
const { actions } = this; | ||
let error: any; | ||
action = action || actions.shift()!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
action = action || actions.shift()!; | |
action = action ?? actions.shift()!; |
Hi @yuri-apanasik
In my PR I also noticed some asap tests that were failing until I changed the way in which fakeTimers were registered. |
Hi @pmoleri , to tell the truth I even forgot about this PR... As I remember and as I can see in the code, global logic with both patches (your or mine) will be the same. I would say we can wait until at least one PR will be merged by maintainers and adjust another PR so code in both animationFrame/asap schedulers is consistent. |
The code communicates different intents, although, in practice it might end up being equivalent because of specifics about asapScheduler. In your code
In asapScheduler, in my experience |
Description:
Related to (#7205)
BREAKING CHANGE:
Related issue (if exists):