mirror of https://github.com/sveltejs/svelte
fix: visit expression when destructuring state declarations (#16081)
parent
370b18f278
commit
8faa178cd7
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: visit expression when destructuring state declarations
|
@ -0,0 +1,6 @@
|
|||||||
|
<script>
|
||||||
|
let { data } = $props();
|
||||||
|
let { foo } = $state(data);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{foo}
|
@ -0,0 +1,5 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
html: `bar`
|
||||||
|
});
|
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
import Child from './Child.svelte';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Child data={{ foo: 'bar' }} />
|
Loading…
Reference in new issue