poe-svelte-ui-lib 1.30.0 → 1.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -67,8 +67,9 @@
|
|
|
67
67
|
иначе входящее значение затёрло бы то, что он ещё не успел сохранить. */
|
|
68
68
|
$effect(() => {
|
|
69
69
|
if (value !== undefined && !untrack(() => isDirty)) {
|
|
70
|
+
const snapshot = JSON.stringify(value)
|
|
70
71
|
info = value
|
|
71
|
-
savedSnapshot =
|
|
72
|
+
savedSnapshot = snapshot
|
|
72
73
|
}
|
|
73
74
|
})
|
|
74
75
|
|
|
@@ -114,8 +114,9 @@
|
|
|
114
114
|
каждое изменение cfg от самого пользователя, только на смену value. */
|
|
115
115
|
$effect(() => {
|
|
116
116
|
if (value !== undefined && !untrack(() => isDirty)) {
|
|
117
|
+
const snapshot = JSON.stringify(value)
|
|
117
118
|
cfg = value
|
|
118
|
-
savedSnapshot =
|
|
119
|
+
savedSnapshot = snapshot
|
|
119
120
|
}
|
|
120
121
|
})
|
|
121
122
|
|