I also wanted to know more about the architectural choice of the getters of Yjs shared types not being promised based. I was experimenting around with the chaining of functions and I noticed that the getters are unable to return the correct output right after setting them. However, if I view the object, I see that it has been set properly, and the object does exist in _prelimContent. The length property, however, still returns 0.
I’m stuck in understanding how this works, so could you give out your insights?
At some point the types might also work independently without a Yjs document. But that would require me to completely mock the Yjs event system, and mock also the other Yjs methods for a feature that is probably utterly useless. Just use the types with the Yjs document - we want build collaborative documents anyway