Skip to content

fix: properly invoke iterator.return() during reactivity loss check#17966

Open
dummdidumm wants to merge 1 commit intomainfrom
iterator-reactivity-loss-fix
Open

fix: properly invoke iterator.return() during reactivity loss check#17966
dummdidumm wants to merge 1 commit intomainfrom
iterator-reactivity-loss-fix

Conversation

@dummdidumm
Copy link
Member

@dummdidumm dummdidumm commented Mar 18, 2026

The logic was flipped - iterator.return() should be called when the iterator is abnormally ending, not when it's normally ending.

Fixes #16610

cc @Ocean-OS

The logic was flipped - `iterator.return()` should be called when the iterator is abnormally ending, not when it's normally ending.

Fixes #16610
@changeset-bot
Copy link

changeset-bot bot commented Mar 18, 2026

🦋 Changeset detected

Latest commit: c055cb8

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

@github-actions
Copy link
Contributor

Playground

pnpm add https://pkg.pr.new/svelte@17966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix in 5.38.0 breaks async iterators

1 participant