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

1. sync important fields of store.pods[id]; 2. sync between yjs and database #138

Closed
1 of 3 tasks
lihebi opened this issue Dec 12, 2022 · 0 comments · Fixed by #140
Closed
1 of 3 tasks

1. sync important fields of store.pods[id]; 2. sync between yjs and database #138

lihebi opened this issue Dec 12, 2022 · 0 comments · Fixed by #140
Assignees

Comments

@lihebi
Copy link
Collaborator

lihebi commented Dec 12, 2022

In collaborative editing, only yjs.nodesMap is synced, but the store.pods[id].xxx fields are not updated. We need to sync the store.pods, otherwise, later operations might create issues, e.g., #136 (comment).

We also need to design carefully to maintain consistency between yjs and the database.

Ref: #136

Fields:

  • position (after dragging)
  • parent/children (after dragging into a scope)
  • content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants