I am new to Yjs, I’ve tried to solve this for quite a time but didn’t find a solution.
I am using Yjs with
codemirror binding and
I am trying to clear the slate (or the
yText) whenever a new user enters.
But, when we initiate the user, we have access to
yText after some time the binding is done.
so, how do we have access to the previous set text immediately. And how do we know if the
yText is synced?