mirror of https://github.com/sveltejs/svelte
fix: preserve SSR context when block expressions contain `await` (#16791)
* DRY out * fix: preserve SSR context when block expressions contain `await`pull/16789/head
parent
39682e2435
commit
e4ebca9289
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: preserve SSR context when block expressions contain `await`
|
@ -0,0 +1,15 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
mode: ['async-server'],
|
||||||
|
|
||||||
|
compileOptions: {
|
||||||
|
// include `push_element` calls, so that we can check they
|
||||||
|
// run with the correct ssr_context
|
||||||
|
dev: true
|
||||||
|
},
|
||||||
|
|
||||||
|
html: `
|
||||||
|
<h1>hello!</h1>
|
||||||
|
`
|
||||||
|
});
|
@ -0,0 +1,3 @@
|
|||||||
|
{#if await true}
|
||||||
|
<h1>hello!</h1>
|
||||||
|
{/if}
|
Loading…
Reference in new issue