Giter VIP home page Giter VIP logo

Comments (7)

marionebl avatar marionebl commented on May 17, 2024 3

Appears to compete with #34, #1.
Some history and discussion about HMR approaches in #45 (browerify-hmr vs custom SSE)

In order to implement this there are changes that need to be landed and released:


Example of choo entry point with HMR enabled:

const html = require('choo/html')
const hmr = require('choo-hmr')
const choo = require('choo')

const app = choo()
app.use(hmr())

app.router([ '/', () => html`<div>hello world</div>`])

const tree = app.start()
document.body.appendChild(tree)

from bankai.

mattdesl avatar mattdesl commented on May 17, 2024 1

You might be interested in following some of the recent LiveReload changes in budo:
mattdesl/budo#194

For example, you can use this in the client to force a style sheet to reload smoothly across all modern browsers:
https://www.npmjs.com/package/reload-css

I chose to go with WebSockets for budo just because they are supported in Edge/IE. I'd be curious to know if SSE has some advantage for live reload purposes, though.

from bankai.

yoshuawuyts avatar yoshuawuyts commented on May 17, 2024 1

done!

from bankai.

mikker avatar mikker commented on May 17, 2024 1

@laduke With https://github.com/yoshuawuyts/choo-reload

from bankai.

yoshuawuyts avatar yoshuawuyts commented on May 17, 2024

related choo issue choojs/choo#295

from bankai.

yoshuawuyts avatar yoshuawuyts commented on May 17, 2024

implementations:

from bankai.

laduke avatar laduke commented on May 17, 2024

how do you turn it on?

from bankai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.