@adbl/cells 0.0.7 → 0.0.8
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/library/classes.js +8 -3
- package/package.json +1 -1
package/library/classes.js
CHANGED
|
@@ -413,7 +413,10 @@ export class Cell {
|
|
|
413
413
|
[]
|
|
414
414
|
);
|
|
415
415
|
} else {
|
|
416
|
-
|
|
416
|
+
const newValue = computedFn();
|
|
417
|
+
const isSameValue = deepEqual(computedCell.value, newValue);
|
|
418
|
+
computedCell.setValue(newValue);
|
|
419
|
+
if (isSameValue) continue;
|
|
417
420
|
}
|
|
418
421
|
computedCell.update();
|
|
419
422
|
}
|
|
@@ -587,9 +590,11 @@ export class Cell {
|
|
|
587
590
|
return value instanceof Cell
|
|
588
591
|
? Cell.flatten(value.wvalue)
|
|
589
592
|
: Array.isArray(value)
|
|
590
|
-
?
|
|
593
|
+
? // @ts-ignore:
|
|
594
|
+
Cell.flattenArray(value)
|
|
591
595
|
: value instanceof Object
|
|
592
|
-
?
|
|
596
|
+
? // @ts-ignore:
|
|
597
|
+
Cell.flattenObject(value)
|
|
593
598
|
: value;
|
|
594
599
|
};
|
|
595
600
|
|