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
Description
Shared objects inside the yDoc.shared have AbstractType and it does seem impossible to figure out the exact type (YMap/YArray etc).
Steps to reproduce the bug
Say, on client side I have yDoc. Then I create two shared root objects:
const yMap = yDoc.getMap('testMap');
// fill yMap with some data
const yArray = yDoc.getArray('testArray');
// fill yArray with some data
Then when you inspect dDoc.share on the server side, this map will have two items of AbstractType type
Is this kind of expected or bug?
If this is expected, then how to understand the particular type of the root objects?
Thanks.
The text was updated successfully, but these errors were encountered:
As far as I know, this is the behavior of yjs. Until someone explicitly calls getMap/getArray in the document, the document will not contain information about a specific type.
Description
Shared objects inside the yDoc.shared have AbstractType and it does seem impossible to figure out the exact type (YMap/YArray etc).
Steps to reproduce the bug
Then when you inspect dDoc.share on the server side, this map will have two items of AbstractType type
Is this kind of expected or bug?
If this is expected, then how to understand the particular type of the root objects?
Thanks.
The text was updated successfully, but these errors were encountered: