Called when documents are added or updated. Documents are batched by table for performance. On initial load with thousands of documents, you get one callback per table instead of thousands of individual callbacks.
Called when documents are deleted. Deletions are batched by table for performance.
Array of deletions, each containing a table name and array of document references
OptionalonOptional callback for conflict detection. Called when PouchDB detects conflicting versions of a document during sync.
Array of conflict information
OptionalonOptional callback for sync progress events. Called during sync operations to report progress.
OptionalonOptional callback for decryption errors. Called when a document fails to decrypt (e.g., wrong password, corrupted data).
Array of decryption errors
Callbacks for document changes, deletions, conflicts, sync events, and errors