cradova 3.15.2 → 3.15.4

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -528,7 +528,7 @@ class Signal {
528
528
  const s = new Set;
529
529
  this.queue.add("__ALL__");
530
530
  for (const k of this.queue) {
531
- if (this.picker.hasOwnProperty(k)) {
531
+ if (this.picker.hasOwnProperty(k) || k === "__ALL__") {
532
532
  const subs2 = this.subscribers[k];
533
533
  if (subs2) {
534
534
  for (const fn of subs2) {
@@ -792,8 +792,7 @@ class List {
792
792
  this.diffDOMBeforeUpdatingState(newState);
793
793
  }
794
794
  set(newData) {
795
- const newState = [...this.state];
796
- this.state = newData instanceof Function ? newData(this.state) : newData || [];
795
+ const newState = newData instanceof Function ? newData(this.state) : newData;
797
796
  this.diffDOMBeforeUpdatingState(newState);
798
797
  }
799
798
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cradova",
3
- "version": "3.15.2",
3
+ "version": "3.15.4",
4
4
  "description": "Build Powerful ⚡ Web Apps with Ease",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",