mirror of https://github.com/sveltejs/svelte
fix: properly hydrate await in `{@html}` (alternative) (#17528)
* fix: properly hydrate await in `{@html}`
* fix: skip no async
* revert runtime changes
* wrap html blocks in hydration comments
* prettier
---------
Co-authored-by: paoloricciuti <ricciutipaolo@gmail.com>
pull/17517/head
parent
7ab62a5878
commit
9b6539a8ef
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: properly hydrate await in `{@html}`
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
skip_no_async: true,
|
||||||
|
mode: ['hydrate'],
|
||||||
|
async test() {}
|
||||||
|
});
|
||||||
@ -0,0 +1 @@
|
|||||||
|
<div>{@html await Promise.resolve(`<span>Foo</span>`)}</div>
|
||||||
Loading…
Reference in new issue