denon icon indicating copy to clipboard operation
denon copied to clipboard

Live Reload-ish first class support for Denon?

Open vibegui opened this issue 3 years ago • 0 comments

Hi, all. First, thanks for the awesome work here.

Now, I couldn't find anywhere a proper "live reload" working example in the broader deno community. It seems very few, specific frameworks have this. By live reload I mean the browser refreshing after the server has finished restarting.

I am going to implement that for myself in the "landing page base starter" I'm creating for my own projects (https://github.com/firstdoit/nano-jsx-denon-live-reload)

I was going to go the way of having a SSE endpoint, which the frontend connects to, and receives a hash of the server init timestamp. When the server restarts, the hash will change and therefore the frontend would know to refresh.

I'm wondering: would there be interest for implementing this as a first class feature for Denon? I'd be happy to PR.

Cheers! cc @eliassjogreen I've seen you're the top contributor, would love your input.

vibegui avatar Jan 31 '22 12:01 vibegui