diff --git a/.changeset/tall-clocks-turn.md b/.changeset/tall-clocks-turn.md new file mode 100644 index 0000000000..22cefcff30 --- /dev/null +++ b/.changeset/tall-clocks-turn.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: clear batch between runs diff --git a/.changeset/tall-phones-fix.md b/.changeset/tall-phones-fix.md new file mode 100644 index 0000000000..29e57c060f --- /dev/null +++ b/.changeset/tall-phones-fix.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: adjust `loc` property of `Program` nodes created from ` + +
x: {x}
+ +Loading...
+ {/snippet} + +y: {y}
+loading...
+ `, + + async test({ assert, target }) { + await tick(); + + const [button1, button2] = target.querySelectorAll('button'); + + button1.click(); + await tick(); + + button2.click(); + await tick(); + + assert.htmlEqual( + target.innerHTML, + ` + + +x: x2
+y: y2
+ ` + ); + } +}); diff --git a/packages/svelte/tests/runtime-runes/samples/async-clear-batch-between-runs/main.svelte b/packages/svelte/tests/runtime-runes/samples/async-clear-batch-between-runs/main.svelte new file mode 100644 index 0000000000..57ab32a6ca --- /dev/null +++ b/packages/svelte/tests/runtime-runes/samples/async-clear-batch-between-runs/main.svelte @@ -0,0 +1,19 @@ + + + + + +loading...
+ {/snippet} +