-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
chore: simplify batch logic a bit more #16845
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
Conversation
|
|
| */ | ||
| export function flush_tasks() { | ||
| if (micro_tasks.length > 0) { | ||
| while (micro_tasks.length > 0) { |
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.
terrifying change 😆
* always delete a batch once committed * activate inside flush * centralise logic * chore: simplify batch logic a bit more (#16845) * more * remove unnecessary flushSync * simplify
this code is infuriatingly resistant to refactoring, but i'm chipping away at it