-
-
Notifications
You must be signed in to change notification settings - Fork 628
Description
I'm following along with the example provided here https://www.blocknotejs.org/docs/features/collaboration/comments. I see that my comments are being saved with my yDoc. When I load the editor a second time, I see my comment highlight appear for a few seconds and then they disappear. This means I can no longer access those comments from the editor itself. I'm wondering if there is a sequence I need to follow when loading the document from the server? Any thoughts on what I might be doing wrong?
To Reproduce
I save the yDoc as a full document "document.yjs" on my server for now. I'm using YjsThreadStore and a custom provider backed by SignalR which distributes updates but does not save them - this is done onUpdate. Everything else is working great so far, just a little hung up here on getting them to display when I reload the document. Any help would be greatly appreciated, thanks!
const threadStore = useMemo(() => { if (!yDoc) return undefined; return new YjsThreadStore( activeUser?.id.toString(), yDoc.getMap("threads"), new DefaultThreadStoreAuth(activeUser?.id.toString(), "editor"), ); }, [yDoc, activeUser]);