-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] live js and css reloading using server sent events #31
Comments
Appears to compete with #34, #1. 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) |
related choo issue choojs/choo#295 |
You might be interested in following some of the recent LiveReload changes in budo: For example, you can use this in the client to force a style sheet to reload smoothly across all modern browsers: 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. |
…ution for bankai is not there choojs/bankai#31
done! |
how do you turn it on? |
should wrap this https://github.com/chinedufn/hot-app-replacement by @chinedufn
The text was updated successfully, but these errors were encountered: