From 1689f9633fdc4f2d7ce96bcc41427421a8053d04 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Sat, 19 Oct 2019 01:33:19 -0400 Subject: [PATCH] fix invalidating store to specific value (#3591) --- src/compiler/compile/Component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index 20c0d09e24..8d1384e7a1 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -764,7 +764,7 @@ export default class Component { } if (name[0] === '$' && name[1] !== '$') { - return x`${name.slice(1)}.set(${name})`; + return x`${name.slice(1)}.set(${value || name})`; } if (