mirror of https://github.com/sveltejs/svelte
fix: destructuring snippet arguments (#16068)
parent
b851b54e9d
commit
1b5f6af276
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: destructuring snippet arguments
|
@ -0,0 +1,5 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
html: `a`
|
||||||
|
});
|
@ -0,0 +1,9 @@
|
|||||||
|
<script>
|
||||||
|
let array = $state(['a', 'b', 'c'])
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#snippet content([x])}
|
||||||
|
{x}
|
||||||
|
{/snippet}
|
||||||
|
|
||||||
|
{@render content(array)}
|
Loading…
Reference in new issue