You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Applying update from Ycs documents with subdocuments on Yjs documents generate new subdocuments guids.
To Reproduce
Steps to reproduce the behavior:
With Ycs create a new root document.
With Ycs create some subdocuments and add them to the root document.
Apply update from Ycs root document to Yjs document.
For example:
// C# codevardocument=newYDoc();varsubDoc1=newYDoc(newYDocOptions(){Guid="subdoc1"});varsubDoc2=newYDoc(newYDocOptions(){Guid="subdoc2"});document.GetMap("subdocs").Set("subdoc1",subDoc1);document.GetMap("subdocs").Set("subdoc2",subDoc2);byte[]update=document.EncodeStateAsUpdateV2();// send this update to Node.js (e. g. with Convert.FromBase64String())
Expected behavior
Ycs subdocuments guids the same as Yjs subdocuments guids.
Screenshots
Yjs document state after applying:
Environment Information
Node.js (v14.16.0)
yjs (v13.4.14)
Additional context
Applying an update from a Yjs document with subdocuments to a Ycs document keeps guids as expected.
Applying an update from a Ycs document with subdocuments to the new Ycs document keeps guids as expected too.
The text was updated successfully, but these errors were encountered:
Describe the bug
Applying update from Ycs documents with subdocuments on Yjs documents generate new subdocuments guids.
To Reproduce
Steps to reproduce the behavior:
For example:
Expected behavior
Ycs subdocuments guids the same as Yjs subdocuments guids.
Screenshots

Yjs document state after applying:
Environment Information
Additional context
Applying an update from a Yjs document with subdocuments to a Ycs document keeps guids as expected.
Applying an update from a Ycs document with subdocuments to the new Ycs document keeps guids as expected too.
The text was updated successfully, but these errors were encountered: