newspeak icon indicating copy to clipboard operation
newspeak copied to clipboard

Ampleforth reactive update doesn't work across distinct presentations of the same document

Open gbracha opened this issue 1 year ago • 0 comments

If one has multiple presenters on a given document - perhaps due to transclusion, or debugging or whatever other cause - changes in one presenter are not automatically propagated to others. This is because most changes to a document do not invoke updateGUI: . Rather, they cause instant live updates to the presentation by modifying the raw HTML (possibly driven by DOM updates) and recomputing the presentation. This works well, and is much more efficient than updateGUI:, which is much too slow to be invoked on every keystroke as required. However, it leads to the problem this bug describes. The fix should be to have document presenters explicitly connect via ducts.

gbracha avatar Aug 17 '22 14:08 gbracha