mirror of https://github.com/sveltejs/svelte
deconflict computed properties with arguments to _recompute - fixes #1012
parent
9b09758f8c
commit
e4d257da1e
@ -0,0 +1,12 @@
|
||||
export default {
|
||||
solo: true,
|
||||
|
||||
html: '<span>waiting</span>',
|
||||
|
||||
test(assert, component, target) {
|
||||
component.set({ x: 'ready' });
|
||||
assert.htmlEqual(target.innerHTML, `
|
||||
<span>ready</span>
|
||||
`);
|
||||
}
|
||||
};
|
@ -0,0 +1,14 @@
|
||||
<span>{{state}}</span>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
x: 'waiting'
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
state: x => x
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue