Skip to content

feat(svelte): add support for async rendering#14430

Merged
ascorbic merged 3 commits into
mainfrom
async-svelte
Sep 24, 2025
Merged

feat(svelte): add support for async rendering#14430
ascorbic merged 3 commits into
mainfrom
async-svelte

Conversation

@ascorbic
Copy link
Copy Markdown
Contributor

Changes

Svelte 5.36 added support for async rendering, including top-level await in scripts (Astro-style!). This PR adds support. The change was literally just adding an await to the render() call, but this PR is larger because we didn't have a test suite for the Svelte integration so this adds one.

Testing

Adds tests, including a fixture that uses async.

Docs

This is a Svelte feature that doesn't need users to do anything Astro-specific, so I don't think it needs docs beyond this changeset.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Sep 24, 2025

🦋 Changeset detected

Latest commit: 935e19d

The changes in this PR will be included in the next version bump.

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

@ascorbic ascorbic added this to the v5.14.0 milestone Sep 24, 2025
@github-actions github-actions Bot added pkg: svelte Related to Svelte (scope) pkg: integration Related to any renderer integration (scope) labels Sep 24, 2025
}

const result = render(Component, {
const result = await render(Component, {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

lol this is it

@ascorbic ascorbic changed the title feat: add support for async rendering feat(svelte): add support for async rendering Sep 24, 2025
@github-actions github-actions Bot added the pkg: example Related to an example package (scope) label Sep 24, 2025
@ascorbic ascorbic merged commit 78011ba into main Sep 24, 2025
20 checks passed
@ascorbic ascorbic deleted the async-svelte branch September 24, 2025 10:31
@astrobot-houston astrobot-houston mentioned this pull request Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) pkg: svelte Related to Svelte (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants