hot reload calculang models
Reload flash and losing navigation context is bad calculang DX and we can do better.
Quarto doesn't do hot reload of file attachments (and a discussion hasn't generated any response atm).
But I suspect this isn't monumental hard to do in Quarto - given flexibility in Quarto and in OJS - this could be wrong though.
A version
indicator should be maintained so that changes over hot versions can be tracked and mapped to UI channels.
Need to think through all tooling inputs.
Model code is now loaded by a require, source code is loaded by FileAttachment
, but modular developments will move this to fetch
(FileAttachment demands a static param).
Adding a dummy GET param (like ?time=<time in ms>
) to these requests is probably a good way to mitigate cache-related issues. The trigger mechanism should use Quartos existing Websocket mechanism for page reloads.
So, the infrastructure doesn't seem to be a million miles away!