Skip to content

Commit 6806ced

Browse files
committed
revert "batch update" (un)optimization
1 parent 69ce0a4 commit 6806ced

File tree

1 file changed

+2
-2
lines changed
  • frameworks/keyed/karyon/src

1 file changed

+2
-2
lines changed

frameworks/keyed/karyon/src/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ 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-
['Update every 10th row', 'update', () => State.batch(() => {
39+
['Update every 10th row', 'update', () => {
4040
for (let r = rows(), i = 0; i < r.length; i += 10)
4141
r[i]?.text(`${r[i].text()} !!!`);
42-
})],
42+
}],
4343
['Clear', 'clear', () => rows([])],
4444
['Swap Rows', 'swaprows', () => {
4545
const r = rows();

0 commit comments

Comments
 (0)