fix: abort running obsolete async branches

#18118

Closing issue

Pull request

Merged
D
dummdidumm
Apr 15, 2026, 4:13 PM

We shouldn't continue executing async work where we know the surrounding branch is destroyed already, it can leave to noisy "derived inter" warnings or even runtime errors ("cannot stringify symbol" when running a template effect with an uninitialized source). Neither should we warn about waterfalls on an already-destroyed async effect.

Fixes (though strictly speaking that particular instance is also fixed by which fixes the underlying cause for the reruns; this one is necessary in itself though, as shown by the new test)

🚀 6

Info

Merged at May 6, 2026, 8:37 PM
Merged by Rich-Harris
Assignees None
Reviewers None
Labels None
Milestone None