Skip to content
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

Open text documents with lazy session initialization #5597

Open
juliushaertl opened this issue Apr 3, 2024 · 0 comments
Open

Open text documents with lazy session initialization #5597

juliushaertl opened this issue Apr 3, 2024 · 0 comments

Comments

@juliushaertl
Copy link
Member

Given the new approach to load a document state from the file content, we should consider adding a way to initialize an editing session lazy. This could be useful for various cases:

  • In a read only document we likely don't need to update as often -> can be a large impact on instances that share a lot of read only files that get accessed frequently
  • In rich workspaces we could only lock the file once someone actually starts editing
  • Collectives could rather use this instead of requiring to switch between different editor components

We'd probably need:

  • Have an API to fetch the document content or yjs state without creating a new session, maybe even fetch steps for read only sessions
  • Some less frequent polling/notify push could then be used to check if a user editing joins or some steps were pushed
  • Think about how a handover can work from the UX perspective
  • Think about how the session can be initialized in the frontend code base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant