mirror of https://github.com/sveltejs/svelte
fix: flush when pending boundaries resolve (#16897)
* fix: flush when pending boundaries resolve * note to self * Update packages/svelte/src/internal/client/dom/blocks/boundary.jspull/16899/head
parent
30e2b23b59
commit
2b49a5e3c0
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: flush when pending boundaries resolve
|
@ -0,0 +1,11 @@
|
|||||||
|
import { tick } from 'svelte';
|
||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
mode: ['client', 'hydrate'],
|
||||||
|
|
||||||
|
async test({ assert, target }) {
|
||||||
|
await tick();
|
||||||
|
assert.htmlEqual(target.innerHTML, '<div>attachment ran</div>');
|
||||||
|
}
|
||||||
|
});
|
@ -0,0 +1,9 @@
|
|||||||
|
{#if await true}
|
||||||
|
<div
|
||||||
|
{@attach (node) => {
|
||||||
|
node.textContent = 'attachment ran';
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
attachment did not run
|
||||||
|
</div>
|
||||||
|
{/if}
|
Loading…
Reference in new issue