mirror of https://github.com/sveltejs/svelte
parent
e238e6611e
commit
e0fca584be
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: take blockers of components into account
|
||||||
@ -0,0 +1 @@
|
|||||||
|
Hi
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
import { tick } from 'svelte';
|
||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
mode: ['async-server', 'client', 'hydrate'],
|
||||||
|
ssrHtml: 'Hi Hi Hi Hi',
|
||||||
|
async test({ assert, target }) {
|
||||||
|
await tick();
|
||||||
|
assert.htmlEqual(target.innerHTML, 'Hi Hi Hi Hi');
|
||||||
|
}
|
||||||
|
});
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
<script>
|
||||||
|
import Component from './Component.svelte'
|
||||||
|
const X = $derived(await Promise.resolve(Component))
|
||||||
|
const Y = await Promise.resolve(Component)
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<X />
|
||||||
|
<svelte:component this={X} />
|
||||||
|
<Y />
|
||||||
|
<svelte:component this={Y} />
|
||||||
Loading…
Reference in new issue