peer-base / peer-pad

📝 Online editor providing collaborative editing in really real-time using CRDTs and IPFS.
https://peerpad.net
MIT License
678 stars 56 forks source link

feature: represent other replication events #248

Closed pgte closed 5 years ago

pgte commented 5 years ago

Also represent some more fine-grained replication events.

pgte commented 5 years ago

This PR is based on PR #247

pgte commented 5 years ago

This should be fixed own in peer-star-app v0.10.4. I went ahead and tried to see if I it was solved in Peer-pad, and I think it’s ok now.. On 1 Dec 2018, 18:10 +0000, Victor Bjelkholm notifications@github.com, wrote:

@victorb commented on this pull request. In src/components/Edit.js:

   }

})

  • doc.replication.on('pinning', () => { I started out doing it like this (instead of using state changed && !fromSelf ), but the pinning event seems to be coming in too late, so it'll just be emitted right before pinned happens. Might be different if the state is very big. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
jimpick commented 5 years ago

This seems to be an improvement ... it now says "Saving..." when I type, so I'm going to merge it.