From 7e2a4cea44f0b5159232d59031d372fdd0975704 Mon Sep 17 00:00:00 2001 From: cha0s Date: Wed, 30 Mar 2022 05:24:02 -0500 Subject: [PATCH] opt: tiny --- packages/traits/src/state-property.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/traits/src/state-property.js b/packages/traits/src/state-property.js index edf650b..781bd81 100644 --- a/packages/traits/src/state-property.js +++ b/packages/traits/src/state-property.js @@ -7,7 +7,8 @@ export default function StateProperty(name, options = {}) { // eslint-disable-next-line no-new-func set = new Function('value, old', ` if (value !== old) { - this.markAsDirty(); + this.$$markedAsDirty = true; + this.entity.$$markedAsDirty = true; } this.state.${name} = value; `),