Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Y Sweet debugger with y-prosemirror has empty state #392

Open
sherwinyu opened this issue Mar 4, 2025 · 0 comments
Open

Y Sweet debugger with y-prosemirror has empty state #392

sherwinyu opened this issue Mar 4, 2025 · 0 comments

Comments

@sherwinyu
Copy link

sherwinyu commented Mar 4, 2025

I'm trying to use y-prosemirror with the y-sweet debugger. I get the message inside the console to open the debugger link, but then when viewing the debugger the state consistently is empty (no entries).

Not that y-prosemirror's code uses a Y.XmlFragment - not sure if that would be relevant here:

  const ydoc = useYDoc();

    // Get the Yjs document from the provider context
    const type = ydoc.get("prosemirror", Y.XmlFragment);

    // Initialize the ProseMirror document
    const { doc, mapping } = initProseMirrorDoc(type, schema);

I have confirmed that swapping out the ydoc.get("prosemirror, Y.XmlFragment) code for the y-sweet todos example and then opening the debugger correctly shows the state in the debugger.

@sherwinyu sherwinyu changed the title Y Sweet debugger with y-prosemirror Y Sweet debugger with y-prosemirror has empty state Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant