• A hook that causes its calling component to re-render when the given Yjs object changes.

    The kind parameter determines the level of change that will trigger a re-render. See ObserverKind for more information.

    Parameters

    • object: AbstractType<any>

      The Yjs object to observe.

    • kind: ObserverKind

      The kind of observation to perform.

    Returns void