rocicorp / replicache

Realtime Sync for Any Backend Stack
https://doc.replicache.dev
1.01k stars 37 forks source link

Question: Subscribing to all changes? #1042

Closed excursus closed 1 year ago

excursus commented 1 year ago

Is there a way to subscribe to all changes made to replicache, rather than subscribing to individual keys? I'd like to be informed when anything changes in replicache, and get only that change. I see there's a scan transaction, which I think would re-run on every change, but I don't see an easy way to obtain only the diff. Is this possible? Thank you.

aboodman commented 1 year ago

Yep: https://doc.replicache.dev/api/classes/Replicache#experimentalwatch

excursus commented 1 year ago

Awesome, thank!