Skip to content

Commit 17716fe

Browse files
kevin-dpsamwillis
authored andcommitted
Remove todo
1 parent fcafd82 commit 17716fe

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
@@ -439,22 +439,15 @@ async function onLoadMore<T extends Row<unknown>>(
439439
options: OnLoadMoreOptions
440440
) {
441441
const { begin, write, commit } = syncParams
442-
443-
// TODO: optimize this by keeping track of which snapshot have been loaded already
444-
// and only load this one if it's not a subset of the ones that have been loaded already
445-
446442
const snapshotParams = compileSQL<T>(options)
447-
448443
const snapshot = await stream.requestSnapshot(snapshotParams)
449444

450445
begin()
451-
452446
snapshot.data.forEach((row) => {
453447
write({
454448
type: `insert`,
455449
value: row.value,
456450
})
457451
})
458-
459452
commit()
460453
}

0 commit comments

Comments
 (0)