Giter Site home page Giter Site logo

Comments (4)

pablojan avatar pablojan commented on June 11, 2024

from swellrt.

ngwaitat avatar ngwaitat commented on June 11, 2024

Yes, the clean up has to rely on the collaborative context instead of just a private area. My scenario is as follow:

  1. There are two editors, when startup each editor will load its data from the previously auto saved medium (file/database).

  2. After loaded the saved data, each editor then open the collaborative object so that both real time state are synchronized initially.

    2.1. When the first editor open the collaborative object, it finds that it is new. It then initialize the collaborative object with the data it loaded.

    2.2. When the second editor open the collaborative object, it isn't new so it has to refresh its own data from the collaborative object instead.

  3. In my ideal case, when both editors finished with the collaborative object, the last editor realized it is the last user, then it either delete the collaborative object (seems currently no this option), or mark it as invalid, so the next user will initialize like step 2.1 does.

I'm not sure how JetPad is implemented, maybe it has no this problem because the collaborative object is used as the data storage medium as well. So there is no separating between the two. But if I were to separate data storage and real time object when no clean up is available, then in step 2.1 I'll have to load from the previously saved collaborative object again, which is unnecessary because it would be the same as the last auto-saved data. This is the reason why I would prefer a clean up mechanism.

from swellrt.

pablojan avatar pablojan commented on June 11, 2024

from swellrt.

ngwaitat avatar ngwaitat commented on June 11, 2024

No problem. Thank you very much :)

from swellrt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.