0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
This commit is contained in:
Richard Harris 2019-10-18 20:46:51 -04:00
parent 78c226b7b1
commit 4419a55977

View File

@ -41,7 +41,7 @@ function create_fragment(ctx) {
function instance($$self, $$props, $$invalidate) {
let $foo;
const foo = writable(0);
component_subscribe($$self, foo, $$value => $$invalidate("$foo", $foo = $$value));
component_subscribe($$self, foo, value => $$invalidate("$foo", $foo = value));
return { foo, $foo };
}