fix: clean up scheduling system
#16741
Pull request
Merged
D
dummdidumm Sep 10, 2025, 8:49 AMConsolidates our scheduling system that had diverged into two - queue_micro_task and Batch.ensure-queues and resolves some edge case race conditions related to flushSync along the way.
Extracted (and robustified) from #16709
Before submitting the PR, please make sure you do the following
- It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
- Prefix your PR title with
feat:,fix:,chore:, ordocs:. - This message body should clearly illustrate what problems it solves.
- Ideally, include a test that fails without this PR but passes with it.
- If this PR changes code within
packages/svelte/src, add a changeset (npx changeset).
Tests and linting
- Run the tests with
pnpm testand lint the project withpnpm lint
Info
Merged at Sep 10, 2025, 4:32 PM
Merged by Rich-Harris
Assignees None
Reviewers None
Labels None
Milestone None
C
changeset-bot[bot] Sep 10, 2025, 8:49 AM🦋 Changeset detected
Latest commit: 67fd61c
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| svelte | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
S
svelte-docs-bot[bot] Sep 10, 2025, 8:50 AM G
github-actions[bot] Sep 10, 2025, 8:52 AMpnpm add https://pkg.pr.new/svelte@16741Pull request open Sep 10, 2025, 8:49 AM
Consolidates our scheduling system that had diverged into two - queue_micro_task and Batch.ensure-queues and resolves some edge case race conditions related to flushSync along the way.
Pull request merged Sep 10, 2025, 4:32 PM
Total -27 +38