Skip to content

Commit ba72a58

Browse files
Trigger Docs Update (#711)
1 parent d7e3b11 commit ba72a58

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/young-bananas-heal.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/common': patch
3+
---
4+
5+
Update TriggerManager trackTableDiff API example

packages/common/src/client/triggers/TriggerManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export interface TriggerManager {
345345
* },
346346
* onChange: async (context) => {
347347
* // Fetches the todo records that were inserted during this diff
348-
* const newTodos = await context.getAll<Database['todos']>(`
348+
* const newTodos = await context.withDiff<Database['todos']>(`
349349
* SELECT
350350
* todos.*
351351
* FROM

0 commit comments

Comments
 (0)