Skip to content

Async SSR doesn't support {@html await ...} #16816

@Rich-Harris

Description

@Rich-Harris

Describe the bug

An await expression in an {@html ...} block causes a syntax error — this code...

<div>{@html await 'this should work'}</div>

...results in this output:

export default function App($$renderer) {
	$$renderer.push(`<div>${$.html((await $.save('this should work'))())}</div>`);
}

Reproduction

link

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions