@domql/state
Advanced tools
Comparing version 2.5.27 to 2.5.28
@@ -95,3 +95,4 @@ "use strict"; | ||
if (options.replace) | ||
targetParent[stateKey] = value; | ||
(0, import_utils.overwriteDeep)(targetParent, changesValue || value); | ||
console.log(changesValue); | ||
targetParent.update(changesValue, { | ||
@@ -98,0 +99,0 @@ execStateFunction: false, |
{ | ||
"name": "@domql/state", | ||
"version": "2.5.27", | ||
"version": "2.5.28", | ||
"license": "MIT", | ||
@@ -34,3 +34,3 @@ "type": "module", | ||
}, | ||
"gitHead": "057e4e261ea9c9e6bd8da2fe8c2a4ad724dd26c6" | ||
"gitHead": "aaf2a65754d4611a18442f9da3b741cb70faf7d1" | ||
} |
@@ -83,3 +83,4 @@ 'use strict' | ||
const targetParent = findGrandParentState || parent.state | ||
if (options.replace) targetParent[stateKey] = value | ||
if (options.replace) overwriteDeep(targetParent, changesValue || value) // check with createChangesByKey | ||
console.log(changesValue) | ||
targetParent.update(changesValue, { | ||
@@ -86,0 +87,0 @@ execStateFunction: false, |
38435
997