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
|
@@ -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
|
|
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;
|
package/tests/array.test.ripple
CHANGED
|
@@ -1547,7 +1547,7 @@ describe('RippleArray', () => {
|
|
|
1547
1547
|
}
|
|
1548
1548
|
|
|
1549
1549
|
component ArrayTest() {
|
|
1550
|
-
|
|
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>
|