ripple 0.2.52 → 0.2.53

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 CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ripple is an elegant TypeScript UI framework",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.2.52",
6
+ "version": "0.2.53",
7
7
  "type": "module",
8
8
  "module": "src/runtime/index.js",
9
9
  "main": "src/runtime/index.js",
@@ -1263,6 +1263,9 @@ export function exclude_from_object(obj, keys) {
1263
1263
  return obj;
1264
1264
  }
1265
1265
 
1266
+ /**
1267
+ * @param {any} v
1268
+ */
1266
1269
  export async function maybe_tracked(v) {
1267
1270
  var restore = capture();
1268
1271
  let value;
@@ -1271,7 +1274,9 @@ export async function maybe_tracked(v) {
1271
1274
  if ((v.f & DERIVED) !== 0) {
1272
1275
  value = await async_computed(v.fn, v.b);
1273
1276
  } else {
1274
- value = await get_tracked(v);
1277
+ value = await async_computed(async () => {
1278
+ return await get_tracked(v);
1279
+ }, /** @type {Block} */ (active_block));
1275
1280
  }
1276
1281
  } else {
1277
1282
  value = await v;
@@ -1547,7 +1547,7 @@ describe('RippleArray', () => {
1547
1547
  }
1548
1548
 
1549
1549
  component ArrayTest() {
1550
- //const items = await RippleArray.fromAsync([6]);
1550
+ const items = await RippleArray.fromAsync([6]);
1551
1551
 
1552
1552
  <pre>{items ? JSON.stringify(items) : 'Loading...'}</pre>
1553
1553
  <pre>{items ? items.$length : ''}</pre>