Skip to content

Commit bf067a2

Browse files
committed
karyon update
1 parent 099b9b0 commit bf067a2

File tree

4 files changed

+271
-270
lines changed

4 files changed

+271
-270
lines changed

frameworks/keyed/karyon/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ const actions = [
3636
['Create 1,000 rows', 'run', () => rows(create(1000))],
3737
['Create 10,000 rows', 'runlots', () => rows(create(10000))],
3838
['Append 1,000 rows', 'add', () => rows([...rows(), ...create(1000)])],
39-
['Clear', 'clear', () => rows([])],
40-
['Update every 10th row', 'update', () => {
39+
['Update every 10th row', 'update', () => State.batch(() => {
4140
for (let i = 0, all = rows(), row; i < all.length; i += 10)
4241
(row = all[i])?.text(`${row.text()} !!!`);
43-
}],
42+
})],
43+
['Clear', 'clear', () => rows([])],
4444
['Swap Rows', 'swaprows', () => {
4545
const all = rows();
4646
[all[1], all[998]] = [all[998], all[1]], rows([...all]);

frameworks/keyed/karyon/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
<title>Karyon</title>
66
<link href="/css/currentStyle.css" rel="stylesheet"/>
77
<script type="module" src="app.bundle.js"></script>
8+
</head>
89
<body></body>
910
</html>

0 commit comments

Comments
 (0)