|
|
|
@ -269,8 +269,7 @@ export default function dom(
|
|
|
|
|
return true;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const reactive_stores = Array.from(component.template_references).filter(n => n[0] === '$');
|
|
|
|
|
filtered_declarations.push(...reactive_stores);
|
|
|
|
|
const reactive_stores = component.vars.filter(variable => variable.name[0] === '$');
|
|
|
|
|
|
|
|
|
|
if (renderer.slots.size > 0) {
|
|
|
|
|
const arr = Array.from(renderer.slots);
|
|
|
|
@ -286,7 +285,6 @@ export default function dom(
|
|
|
|
|
filtered_props.length > 0 ||
|
|
|
|
|
component.partly_hoisted.length > 0 ||
|
|
|
|
|
filtered_declarations.length > 0 ||
|
|
|
|
|
reactive_stores.length > 0 ||
|
|
|
|
|
component.reactive_declarations.length > 0
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
@ -306,7 +304,7 @@ export default function dom(
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const reactive_store_subscriptions = reactive_stores.length > 0 && reactive_stores
|
|
|
|
|
.map(name => deindent`
|
|
|
|
|
.map(({ name }) => deindent`
|
|
|
|
|
let ${name};
|
|
|
|
|
${component.options.dev && `@validate_store(${name.slice(1)}, '${name.slice(1)}');`}
|
|
|
|
|
$$self.$$.on_destroy.push(${name.slice(1)}.subscribe($$value => { ${name} = $$value; $$invalidate('${name}', ${name}); }));
|
|
|
|
|