guettli
1
If would be very handy if bidirectional replication would be made available in JavaScript.
PouchDB already implements such a feature. See: https://pouchdb.com/guides/replication.html#couchdb-sync
This would make it much easier to write "offline first" applications.
I how no clue how to implement this, but I would love to use it, if it was available.
ljharb
2
Replication from what - a database? Thereβs no database in the JS language.
You can use Proxy already to keep two objects in sync by manually replicating mutations in the appropriate handlers.
guettli
3
But there is IndexedDB. I thought this is the right place to create feature requests to extend IndexedDB.
But I guess this was wrong. The IndexedDB spec is from w3c.
I will ask there.