You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/compiler/set-in-observe-dedupes-renders/Widget.html

18 lines
350 B

<div>{{foo.x}}</div>
<script>
export default {
onrender () {
this.observe( 'foo', foo => {
const bar = this.get( 'bar' );
if ( foo.x !== bar.x ) throw new Error( 'mismatch' );
});
this.observe( 'bar', bar => {
const foo = this.get( 'foo' );
if ( foo.x !== bar.x ) throw new Error( 'mismatch' );
});
}
};
</script>