svelte-dev-helper
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -204,3 +204,14 @@ import Registry from './registry'; | ||
&& !proxyOptions.noPreserveState) { | ||
//manually flush computations and re-render changes | ||
let changed = {}; | ||
for (let k in oldstate) { | ||
changed[k] = true; | ||
} | ||
this.proxyTarget._recompute(changed, oldstate); | ||
this.proxyTarget._fragment && this.proxyTarget._fragment.p(changed, oldstate); | ||
//set old state back | ||
this.set(oldstate); | ||
} else { | ||
@@ -215,2 +226,3 @@ | ||
this.proxyTarget._updatingReadonlyProperty = false; | ||
} | ||
@@ -217,0 +229,0 @@ } |
{ | ||
"name": "svelte-dev-helper", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Helper for svelte components to ease development", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23996
547