Skip to content

Invalid colorClassName in LoroExtensions causes loro-codemirror to stop functioning silently, without throwing any exception. #12

Description

@alissa-tung

question: what does colorClassName refers to?

steps to reproduce:

  1. the following code
LoroExtensions(
      this.loroDoc,
      {
        ephemeral: this.ephemeralStore,
        user: {
          name: "Loro",
          colorClassName: "#7B68EE",
        },
      },
      this.undoManager,
    );

steps to fix:

  1. colorClassName: "user2",

problematic behavior:

  1. loro-codemirror to stop functioning silently, without throwing any exception.
  2. initial contents of the underlying LoroDoc does not get rendered in EditorView
  3. EditorView does not sync with LoroDoc default sync text
  4. subscribeLocalUpdates never fires with edit in EditorView

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions