mirror of https://github.com/sveltejs/svelte
fix: legacy reactive dependencies tweak (#10128)
take into account member expressions when determining legacy reactive dependencies fixes #9954pull/10132/head
parent
901cfc9f15
commit
aa5a62396a
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: take into account member expressions when determining legacy reactive dependencies
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `1 1`
|
||||
});
|
@ -0,0 +1,12 @@
|
||||
<script>
|
||||
let button = { title: '', label: '' };
|
||||
let title = '';
|
||||
let label = '';
|
||||
|
||||
title = label = '1'; // to add dependencies/generate update block
|
||||
|
||||
$: button.title = title;
|
||||
$: button.label = label;
|
||||
</script>
|
||||
|
||||
{button.title} {button.label}
|
Loading…
Reference in new issue