Skip to content

Commit 5a024b5

Browse files
committed
Remove todo
1 parent 347a3c6 commit 5a024b5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/electric-db-collection/src/electric.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -517,22 +517,15 @@ async function onLoadMore<T extends Row<unknown>>(
517517
options: OnLoadMoreOptions
518518
) {
519519
const { begin, write, commit } = syncParams
520-
521-
// TODO: optimize this by keeping track of which snapshot have been loaded already
522-
// and only load this one if it's not a subset of the ones that have been loaded already
523-
524520
const snapshotParams = compileSQL<T>(options)
525-
526521
const snapshot = await stream.requestSnapshot(snapshotParams)
527522

528523
begin()
529-
530524
snapshot.data.forEach((row) => {
531525
write({
532526
type: `insert`,
533527
value: row.value,
534528
})
535529
})
536-
537530
commit()
538531
}

0 commit comments

Comments
 (0)