mirror of https://github.com/sveltejs/svelte
fix $$invalidate getting confused by an undefined third argument (#4170)
parent
741444d07e
commit
3b0c6a1c56
@ -0,0 +1,6 @@
|
||||
export default {
|
||||
html: `
|
||||
<p>undefined</p>
|
||||
<p>undefined</p>
|
||||
`
|
||||
};
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import { writable } from 'svelte/store';
|
||||
const store = writable([]);
|
||||
$: ({ foo1 } = $store);
|
||||
$: [foo2] = $store;
|
||||
</script>
|
||||
|
||||
<p>{foo1}</p>
|
||||
<p>{foo2}</p>
|
Loading…
Reference in new issue