Skip to content

fix: reset context after waiting on blockers of @const expressions#18100

Merged
dummdidumm merged 2 commits into
mainfrom
const-context-fix
Apr 13, 2026
Merged

fix: reset context after waiting on blockers of @const expressions#18100
dummdidumm merged 2 commits into
mainfrom
const-context-fix

Conversation

@dummdidumm

Copy link
Copy Markdown
Member

Regression from #18039 - we need to have each await expression (and waiting on blockers is one) in its own entry of (renderer.)run. Else context is not restored correctly and if the synchronous expression afterwards requires it stuff breaks.

Fixes #18098

Regression from #18039 - we need to have each await expression (and waiting on blockers is one) in its own entry of `(renderer.)run`. Else context is not restored correctly and if the synchronous expression afterwards requires it stuff breaks.

Fixes #18098
@changeset-bot

changeset-bot Bot commented Apr 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 19fea84

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

@svelte-docs-bot

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

Playground

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

@dummdidumm dummdidumm merged commit 0ed8c28 into main Apr 13, 2026
21 checks passed
@dummdidumm dummdidumm deleted the const-context-fix branch April 13, 2026 18:09
@github-actions github-actions Bot mentioned this pull request Apr 13, 2026
dummdidumm pushed a commit that referenced this pull request Apr 14, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## svelte@5.55.4

### Patch Changes

- fix: never mark a child effect root as inert
([#18111](#18111))

- fix: reset context after waiting on blockers of `@const` expressions
([#18100](#18100))

- fix: keep flushing new eager effects
([#18102](#18102))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.57.1] Error when reading a page.url derived in @const

2 participants