mirror of https://github.com/sveltejs/svelte
fix: allow `{@html await ...}` and async snippets on the server (#16817)
Fixes #16816 Fixes #16811 --------- Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com> Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>pull/16820/head
parent
3c694ce3a4
commit
cf35a22568
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: allow `{@html await ...}` and snippets with async content on the server
|
@ -0,0 +1 @@
|
||||
<div>this should work</div>
|
@ -0,0 +1 @@
|
||||
<div>{@html await 'this should work'}</div>
|
@ -0,0 +1 @@
|
||||
<div>this should work</div>
|
@ -0,0 +1,6 @@
|
||||
{#snippet foo()}
|
||||
{@const x = await 'this should work'}
|
||||
<div>{x}</div>
|
||||
{/snippet}
|
||||
|
||||
{@render foo()}
|
Loading…
Reference in new issue