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/js/samples/reactive-values-non-topolog.../expected.js

33 lines
634 B

5 years ago
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
function instance($$self, $$props, $$invalidate) {
let { x } = $$props;
let a;
let b;
$$self.$set = $$props => {
if ("x" in $$props) $$invalidate(0, x = $$props.x);
};
$$self.$$.update = () => {
if ($$self.$$.dirty[0] & /*x*/ 1) {
$: $$invalidate(2, b = x);
}
if ($$self.$$.dirty[0] & /*b*/ 4) {
$: a = b;
}
};
return [x];
}
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, null, safe_not_equal, { x: 0 });
}
}
export default Component;