Skip to content

chore: minor tidy-ups#18326

Merged
Rich-Harris merged 3 commits into
mainfrom
tidy-up-async
May 30, 2026
Merged

chore: minor tidy-ups#18326
Rich-Harris merged 3 commits into
mainfrom
tidy-up-async

Conversation

@Rich-Harris

Copy link
Copy Markdown
Member

some more stuff extracted from #18035

@changeset-bot

changeset-bot Bot commented May 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c84ceb8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment on lines +390 to +392
create_effect(RENDER_EFFECT, () => {
fn(...values.map(get))
});

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I very often find myself adding console logs to this function, or otherwise engaging in debugging shenanigans, and the implicit return gets in the way

}

set_signal_status(effect, DESTROYING);
effect.f |= DESTROYING;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set_signal_status should only ever be called with CLEAN/DIRTY/MAYBE_DIRTY. The current line only works by accident

@github-actions

Copy link
Copy Markdown
Contributor

Playground

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

@svelte-docs-bot

Copy link
Copy Markdown

@baseballyama baseballyama left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ve reviewed the changes carefully, and it looks good to me.

@Rich-Harris Rich-Harris merged commit 05a3bce into main May 30, 2026
21 checks passed
@Rich-Harris Rich-Harris deleted the tidy-up-async branch May 30, 2026 12:04
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.

2 participants