seed-hypermedia / mintter

Mintter: an app for knowledge communities. Powered by the Hypermedia protocol.
https://mintter.com
Apache License 2.0
162 stars 11 forks source link

Probably messages between windows stopped working #330

Closed horacioh closed 2 years ago

horacioh commented 2 years ago

Describe the Bug

For some reason, invoke messages are not been received in other windows. The message is being sent, but the other windows do not respond to them.

Reproduction

  1. open both Document A and Document B, one of those have one or more transclusions of the other document.
  2. if you open the console, and hover on any block, the current blockId should be assigned to a body data attribute called data-hover-block

Expected Behavior

this data attribute should be set in ALL windows.

Stack Trace

Not a stack trace but a video:

https://user-images.githubusercontent.com/725120/176051888-8407528b-78f9-4eb4-9f82-6f827edb0fda.mov

Additional Context

JonasKruckenberg commented 2 years ago

I cannot find a problem with this on the host/event system side of things. I added debug logs across the place and all events are received by all windows and the correct block Ids are present too

horacioh commented 2 years ago

I see the events getting to all windows, but for some reason I cannot change the document.body.dataset.. need to investigate!