-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement autosave #801
Comments
from a product perspective, there are a couple things to consider...
Some thoughts to the above:
|
More questions:
Looking deeper in the code...A really naive and simple approach is whenever CRDTs and doing multiplayer will require a pretty major rewrite. I dont think it's necessary to pursue this at the moment. From a phasing perspective, we could do the following:
|
Oh yes I forgot we had the Saving the serialized json in localStorage should be enough for now, the maximum size limit for localStorage is about 5 MB per origin in all browsers. Multi-users edit is indeed a bit more complex to implement. There are indeed some CRDT libraries like https://github.com/yjs/yjs that we could use for this, you would also need a server with WebSocket. |
Autosave changes a few seconds later after the user made changes.
With #704 done, all the user changes are now undoable.
To know if there is any change to save, we can listen to the events entitycreate, entityclone, entityremoved, entityupdate, componentadd, componentremove.
The text was updated successfully, but these errors were encountered: