From f48c76b7f6d27a8628f62278a177db9b0c1c9f84 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 18 Mar 2019 17:40:20 -0400 Subject: [PATCH] suppress $$props is not defined warning --- src/compile/Component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compile/Component.ts b/src/compile/Component.ts index a43b0fc652..77c516049e 100644 --- a/src/compile/Component.ts +++ b/src/compile/Component.ts @@ -1175,7 +1175,9 @@ export default class Component { if (name[0] === '$') { name = name.slice(1); - this.has_reactive_assignments = true; + this.has_reactive_assignments = true; // TODO does this belong here? + + if (name[0] === '$') return; // $$props } if (this.var_lookup.has(name)) return;