Svelte

fix: re-process batch if new root effects were scheduled

#17895

Closing issue

Pull request

Merged
D
dummdidumm
Mar 10, 2026, 1:57 PM

In some cases a new branch might create effects which via reading/writing reschedule an effect, causing this.#roots to become populated again. In this case we need to re-process the batch. Most of the time this will just result in a cleanup of the dirtied branches since other work is already handled via running the effects etc. - it's still crucial, else the reactive graph becomes frozen since no new root effects are scheduled.

Fixes

Info

Merged at Mar 10, 2026, 5:52 PM
Merged by Rich-Harris
Assignees None
Reviewers None
Labels None
Milestone None

Pro tip: You can prefix GitHub URLs of issues, PRs or discussions with svcl.dev/ to view them on this page! Also try it on a GitHub release ;)