Skip to content

Commit 2f48c72

Browse files
committed
Updates for 0.25
1 parent 6ba6a85 commit 2f48c72

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

frameworks/non-keyed/mutraction/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"build-prod": "npm run build",
1414
"build": "npx tsc && npm run transform && npm run bundle",
1515
"transform": "npx babel out -d out2",
16-
"bundle": "npx esbuild out2/index.js --bundle --format=esm --outfile=dist/index.js"
16+
"bundle": "npx esbuild out2/index.js --bundle --format=esm --outfile=dist/index.js --minify"
1717
},
1818
"author": "Tom Theisen",
1919
"license": "MIT",
@@ -25,6 +25,6 @@
2525
"typescript": "^5.1.6"
2626
},
2727
"dependencies": {
28-
"mutraction-dom": "0.24.0"
28+
"mutraction-dom": "0.25.0"
2929
}
3030
}

frameworks/non-keyed/mutraction/src/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ function append(n: number) {
2121

2222
function update() {
2323
defaultTracker.startTransaction();
24-
for (let i = 0; i < items.length; i += 10) {
25-
items[i].label += " !!!";
24+
for (let i = 0, found = 0; i < items.length; i++) {
25+
if (!(i in items)) continue;
26+
if (found++ % 10 === 0) items[i].label += " !!!";
2627
}
2728
defaultTracker.commit();
2829
}

0 commit comments

Comments
 (0)