Skip to content

Live Reload-ish first class support for Denon? Β #159

@vibegui

Description

@vibegui

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions