x-block-lib 0.9.26 → 0.9.27

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 +6 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -8695,7 +8695,10 @@ function makeAppBindBlocks(e) {
8695
8695
  }
8696
8696
  function buildReactivity(e) {
8697
8697
  let y = {
8698
- watchEffect: {},
8698
+ watchEffect: {
8699
+ ids: [],
8700
+ triggers: {}
8701
+ },
8699
8702
  bind: {
8700
8703
  sets: {},
8701
8704
  triggers: {}
@@ -8704,7 +8707,8 @@ function buildReactivity(e) {
8704
8707
  if (!b) return y;
8705
8708
  for (let e of b) if (e.type === "watch_effect_v1") {
8706
8709
  let b = makeWatchEffectBlocks(gatherWatchEffectBlocks(e));
8707
- for (let x of b) y.watchEffect[x] || (y.watchEffect[x] = []), addUnique(y.watchEffect[x], e.id);
8710
+ for (let x of b) y.watchEffect.triggers[x] || (y.watchEffect.triggers[x] = []), addUnique(y.watchEffect.triggers[x], e.id);
8711
+ y.watchEffect.ids.push(e.id);
8708
8712
  } else if (e.type === "app_bind_v1") {
8709
8713
  let b = makeAppBindBlocks(e.getChildren(!0));
8710
8714
  y.bind.sets[e.id] = b;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.9.26",
4
+ "version": "0.9.27",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "peerDependencies": {
43
43
  "x-essential-lib": "^0.9.24",
44
- "x-runtime-lib": "^0.8.200",
44
+ "x-runtime-lib": "^0.8.202",
45
45
  "x-state-lib": "^0.3.38"
46
46
  },
47
47
  "devDependencies": {