I’m working on an offline storage story for our project. We’d like to handle intermittent connection losses gracefully.
We’re set up with the collab plugin. The idea is to locally cache changes made to the document while the disconnected from the authority, and re-apply them upon reconnection. One trick has been how to handle the case where the authority version number has incremented before a given client comes back online again with changes. Seems we should replay those changes through the editor state somehow, but I don’t see an easy way to create transactions from steps, and serializing de-serializing transactions to and from JSON is non trivial.
Any advice? Helpful tips?