Content from another room shows up when i switch to another room from my sidebar

Hi Yjs
i think this has a thing to do with my doc instance, reusing the same Y.Doc instance for different room IDs. not sure but i’ve tried fixing it with provider.destroy() and doc.destroy() problem still persists

Im currently working on a small project that kinds of works like a mini notion, i use a blocknote editor for my, then supabase to broadcast or create awareness between collaborators

is there a better fix for this, thanks

Btw Yjs is a very interesting tool :star_struck:

Well… I think you answered your own question :wink: You are “reusing” a YDoc instance. Apparantly, the content is somehow connected to both rooms. So, to me, the obvious solution is to use different YDocs for different rooms.