diff options
Diffstat (limited to 'src/client/sync/queue.ts')
| -rw-r--r-- | src/client/sync/queue.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/sync/queue.ts b/src/client/sync/queue.ts index 984edc3..b097159 100644 --- a/src/client/sync/queue.ts +++ b/src/client/sync/queue.ts @@ -246,6 +246,14 @@ export class SyncQueue { } /** + * Notify listeners that pending changes may have been added externally + * (e.g., after writing to IndexedDB outside of the sync flow). + */ + async notifyChanged(): Promise<void> { + await this.notifyListeners(); + } + + /** * Mark items as synced after successful push */ async markSynced(results: { |
