Returns a Y.Text object from the Y.Doc in the current context.
The string name is the name of the top-level Yjs object to return.
Two clients that call useText(...) with the same name will get
the same object.
By default, this will subscribe the calling component to updates on
the object and its children. See ObjectOptions and
ObserverKind for finer control of observer behavior.
Parameters
Optionalname: string
The name of the top-level Yjs object to return. Defaults to empty string.
Returns a
Y.Text
object from theY.Doc
in the current context.The string
name
is the name of the top-level Yjs object to return. Two clients that calluseText(...)
with the samename
will get the same object.By default, this will subscribe the calling component to updates on the object and its children. See ObjectOptions and ObserverKind for finer control of observer behavior.