mirror of https://github.com/sveltejs/svelte
Merge 06049a96af into da00abe116
commit
b64bc7ceb3
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: hydrate boundaries inside async components correctly
|
||||
@ -0,0 +1,11 @@
|
||||
import { tick } from 'svelte';
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
async: true,
|
||||
async test(assert, target) {
|
||||
assert.htmlEqual(target.innerHTML, 'component: loaded, boundary: loading');
|
||||
await tick();
|
||||
assert.htmlEqual(target.innerHTML, 'component: loaded, boundary: loaded');
|
||||
}
|
||||
});
|
||||
@ -0,0 +1,12 @@
|
||||
<script>
|
||||
await Promise.resolve();
|
||||
</script>
|
||||
|
||||
component: loaded, boundary:
|
||||
|
||||
<svelte:boundary>
|
||||
loaded
|
||||
{#snippet pending()}
|
||||
loading
|
||||
{/snippet}
|
||||
</svelte:boundary>
|
||||
Loading…
Reference in new issue