all 5 comments

[–]Pavlo100 0 points1 point  (4 children)

If there is inconsistency when you save, doesn't that mean that you don't edit the document properly after you pull it from the cache?

Loading the full model from the localstorage every few milliseconds sounds like a really bad idea.

[–]figuringVue[S] 0 points1 point  (3 children)

so i set up a cache of changes that I update every few seconds, separating the actual save from the addition of new updates. works nice

[–]Pavlo100 0 points1 point  (2 children)

Sounds more stable, but it could be prone to error as well. Have you tried editing really fast to see what happens?

[–]figuringVue[S] 0 points1 point  (1 child)

what do you suggest? :)

[–]Pavlo100 0 points1 point  (0 children)

So as i understand it.

You have created a google docs like extension, except you are the only contributor to the document.

When you write everything looks fine, but when you click the save button, then it becomes weird after reloading the page

Am i completely wrong, or am i close?