seqda 1.1.1 → 1.1.2
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.
- package/package.json +1 -1
- package/src/index.js +3 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -220,6 +220,9 @@ function createStoreSubsection(options, sectionTemplate, path) {
|
|
|
220
220
|
if (value && typeof value === 'object' && value === currentState)
|
|
221
221
|
throw new Error(`Error: "${getPath(path)}" the state value is the same, but it is required to be different.`);
|
|
222
222
|
|
|
223
|
+
if (!Nife.propsDiffer(value, currentState))
|
|
224
|
+
return;
|
|
225
|
+
|
|
223
226
|
let previousState = currentState;
|
|
224
227
|
this[INTERNAL_STATE] = setPath(this[INTERNAL_STATE], path, value);
|
|
225
228
|
|